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
I would like to set the class is-loading to the HTML div parent of the input element, to add a loading spinner while the request is processed on backend.
But with unicorn:dirty, I can only set a class on the input attribute.
So as a workaround solution I found this, and it works perfectly.
But it could be easier if we could target a specific id with dirty, to set the class wherever we want.
Is there any better solution ?
Thanks.
The text was updated successfully, but these errors were encountered:
Hmm, I do something sort of similar in this todo component, but it's with loading. If you can fork or make a small reproducible repo I can see why this might not be working as expected.
I have a search bar that mades request automatically on change with
unicorn:model
.I would like to set the class
is-loading
to the HTML div parent of the input element, to add a loading spinner while the request is processed on backend.But with
unicorn:dirty
, I can only set a class on the input attribute.So as a workaround solution I found this, and it works perfectly.
But it could be easier if we could target a specific id with dirty, to set the class wherever we want.
Is there any better solution ?
Thanks.
The text was updated successfully, but these errors were encountered: