You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We just had a case, where we move the state handling of form fields to a mixin. Based on the current state of an element we update the modifier classes on the root element of a component. Currently I don't see an option, how we could automatically inject modifier classes from the mixin into b(). We currently defined a computed property which merges component and mixin states into one object.
I couldn't find a solution for this problem in your documentation. Therefore I wanted to propose a hook for b() which would be triggered on the component when ever b() calculates classes which would allow to extend the properties of the initial call. The hook then could be added by a mixin.
e.g. modifying the modifiers on the block element (b())
We just had a case, where we move the state handling of form fields to a mixin. Based on the current state of an element we update the modifier classes on the root element of a component. Currently I don't see an option, how we could automatically inject modifier classes from the mixin into
b()
. We currently defined a computed property which merges component and mixin states into one object.I couldn't find a solution for this problem in your documentation. Therefore I wanted to propose a
hook
forb()
which would be triggered on the component when everb()
calculates classes which would allow to extend the properties of the initial call. The hook then could be added by a mixin.e.g. modifying the modifiers on the block element (
b()
)The text was updated successfully, but these errors were encountered: