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

BUG: toggleState shared method timeout handling #104

Open
Stallos11 opened this issue Jun 20, 2022 · 0 comments
Open

BUG: toggleState shared method timeout handling #104

Stallos11 opened this issue Jun 20, 2022 · 0 comments
Labels
bug Something isn't working.

Comments

@Stallos11
Copy link
Member

Stallos11 commented Jun 20, 2022

The toggleState method is not working properly.

In fact, we need to handle timeout references and cancel them if we click back on the input.

Reproduce the bug on the https://vue.useaxentix.com/docs/forms/autocomplete.html page :

  • Scroll until the form-select-content is out of the page and shown at the top once toggled.
  • Click on the input
  • Click fast outside and inside of it

We need to change the behaviour of this function to make it use the position of the clicked element and the content height, this will remove complexity made to handle another click when the content is already opened since it's bottom is not outside of the viewport once placed on the top.

@Stallos11 Stallos11 added the bug Something isn't working. label Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

1 participant