question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CustomInput css not working

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mkultra-zcommented, Jul 9, 2019

Should be customInput not customerInput 🤔

0reactions
robertobattscommented, Jul 10, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found