Can't update className prop
See original GitHub issueI have a form, which should disable all fields during submission.
But I can’t update className
prop.
render() {
const {
meta: { submitting },
} = this.props;
return (
<Reaptcha
className={classnames('m-aletheia-captcha', {
'm-aletheia-captcha--disabled': submitting,
})}
/>
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Changing class name of a div doesn't update it's appearance ...
I'm trying to toggle background of a div with changing className every second based on changing the state of a data array.
Read more >className prop not working with custom DOM elements in ...
The className prop does not appear to get mapped correctly when applied to custom DOM elements in 0.14.0-rc1.
Read more >HTML DOM Element className Property - W3Schools
Definition and Usage. The className property sets or returns an element's class attribute. ... if "myDIV" has a "myStyle" class, change the font...
Read more >Pass class names as props to React components | bobbyhadz
To pass class names as props to a React component, pass a string containing the class names as a prop. Destructure the prop...
Read more >classnames - npm
A simple utility for conditionally joining classNames together. Latest version: 2.3.2, last published: 3 months ago. Start using classnames ...
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 FreeTop 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
Top GitHub Comments
Fixed in
1.7.2
.@AndyOGo Ohh… I’m sorry! I know where the problem is.