We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If we have complex modifier, and we enabled this dynamically then component will be created again, and focus will be removed from component.
modifier:
export const withClear = withBemMod('Component', { clearable: true }, (Component) => { return function WithClear() { return <Component icon={<div>X</div>} /> } })
usage:
function App() { const [clearable, setClearable] = React.useState(false) React.useEffect(() => { setTimeout(() => setClearable(true), 1000) }, []) return ( <Component clearable={clearable} /> ) }
Component should update without focus side-effects.
The text was updated successfully, but these errors were encountered:
I think we should try pass "internal key" for nextProps and say for react not update this component from initial.
nextProps
Sorry, something went wrong.
No branches or pull requests
Info
If we have complex modifier, and we enabled this dynamically then component will be created again, and focus will be removed from component.
Example
modifier:
usage:
Expected behavior
Component should update without focus side-effects.
The text was updated successfully, but these errors were encountered: