-
-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
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
Replace css animation with js animation #360
Comments
hello, i make demo to show there is something to remove before make anything: with Firefox browser problem is shown easier, Solution to recover speed as slimselect 1.27 and extra fix :
this cause bug when slim is selected > change tab > return to tab,
after this you can check if setTimeout is needed |
I think i follow you on a few of these. I have noticed i need to address multiple afterChange calls and a few other things. I cant tackle this today, but if you can submit a pr i can take a look at it tomorrow and test everything. |
thanks for version V2.3.1, |
Yep i do see that. If you already found the spot your more then welcome to do a pr. Otherwise Ill try to get to it in the next few days. |
spot is found at render.ts :
this 3x event trigger at the same time open() when clic on select, |
Totally fine. I think I am going to try out debouncing the event callback. Instead of trying to pinpoint where to allow the callback. |
Can a |
I honestly might have to change it all to js animations but who knows when ill be able to do that |
First of all: I like this script very much. Used Select2 and Selectize before but the events and methods of Slim Selects are much better and made it easy to code what I needed. I agree with @marko-hologram : End of transition can be detected easily by adding an eventlistener. I gave it a try and this works fine:
|
im open to pr's if you want to submit something. |
Currently I have to do setTimeout to delay to wait for the css animation to complete and this makes it tough on others who want to change that animation duration.
I suggest replacing any css animation with js. This will allow better settings flexibility for things like testing where people find it better to not have animation delay. Or just dont want animation at all.
The text was updated successfully, but these errors were encountered: