Hello,
Is it possible to disable animation for the toggle element when we programmatically fill in the form (app.form.fillFromData)?
Thanks.
Hello,
Is it possible to disable animation for the toggle element when we programmatically fill in the form (app.form.fillFromData)?
Thanks.
app.form.fillFromData
add some class to toggle that will disable animation on toggle and its elements in CSS (with transition: none
)app.form.fillFromData
I add styling to this this element, but the animation doesn’t turn off:
<label class="toggle toggle-init" style="transition: none;">...</label>
As it turned out, we need to add this style to .toggle-icon and .toggle-icon:after
And most importantly, we need to delete the style after 300ms.