CustomInput css not working
See original GitHub issueI have a component like this:
export class MonthPicker extends Component() {
render() {
return (
<DatePicker customInput={this.getNotWorkingCustomInput()} />
<DatePicker customInput={this.getWorkingCustomInput()} />
)
}
getNotWorkingCustomInput() {
return (
<button className="input-datepicker-button">{this.getButtonLabel()}</button>
)
}
getWorkingCustomInput() {
return (
<div>
<button className="input-datepicker-button">{this.getButtonLabel()}</button>
</div>
)
}
}
In the first case the css is not working. Can you solve it?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
css - Custom Input[type="submit"] style not working with ...
I want to use my custom style on input[type="submit"] button with jquerymobiles button but it is not working. My html code is:
Read more >Custom CSS Styles for Form Inputs and Textareas
We'll specifically style the input types of text , date , and file , and style the readonly and ... Common Issues with...
Read more >Advanced form styling - Learn web development | MDN
While there are still difficulties using CSS with HTML forms, there are ways to get around many of the problems. There are no...
Read more >[Solved]-Apply external custom css to a reactstrap input-Reactjs
Coding example for the question Apply external custom css to a reactstrap ... is not working in reactstrap custom input switch · How...
Read more >Custom Styling Form Inputs With Modern CSS Features
If the property isn't supported, the styles won't apply and default input styles will ... As it stands today, appearance is a working...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Should be
customInput
notcustomerInput
🤔Yeah, I already know that solution. I just wanted to let you know that it doesn’t work if you don’t wrap it into a div. In general, it doesn’t take the style of the parent div