We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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.
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.