Skip to content
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

UIkit Events and Animationend event #2047

Closed
piotr-cz opened this issue Sep 28, 2016 · 1 comment
Closed

UIkit Events and Animationend event #2047

piotr-cz opened this issue Sep 28, 2016 · 1 comment

Comments

@piotr-cz
Copy link

Dropdown events show.uk.dropdown and hide.uk.dropdown should be triggered after animation ends.

suggested code:

if (UI.support.animation) {
    this.dropdown.one(UI.support.animation.end, this.trigger.bind(this, [this, force]));
} else {
    this.trigger('hide.uk.dropdown', [this, force]);
}

Use case
I'm using autocomplete library which binds to input search field which is located inside the dropdown.
Suggestion box is absolutely positioned to match the input field position, but it happens too early: during animation itineration and is being placed over input field.
Using events like beforeshow.uk.dropdown or show.uk.dropdown doesn't help as these happen in the same moment.

@philkisters
Copy link
Contributor

We have released the next major version, UIkit3. To start focusing our work on the most recent release, we decided to close all the issues related to UIkit2. Please check, if these issues still persist in version 3 and if so, please open a new issue.

Thanks for your understanding,
Your UIkit Team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants