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

Fix long clicks not selecting options #410

Merged
merged 3 commits into from Jan 30, 2020

Conversation

NickColley
Copy link
Contributor

@NickColley NickColley commented Jan 22, 2020

Through exploring this issue I've determined that a change to fix a bug is the reason why doing a long click will not work on the autocomplete since the click needs to finish in 200ms.

I've explored an alternative but tried reverting this specific commit and then testing custom templates in Internet Explorer 11 and cannot reproduce the original issue.

Fixes #408
Fixes #328
Closes #409 (alternative try at fixing this)
Closes #342 (alternative try at fixing this)

@NickColley NickColley changed the title Fix long click issue round 2 Fix long click issue Jan 22, 2020
@NickColley NickColley added this to Needs review in Design System Sprint Board via automation Jan 23, 2020
Copy link
Contributor Author

@NickColley NickColley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a CHANGELOG entry

@NickColley NickColley changed the title Fix long click issue Fix long clicks not selecting options Jan 23, 2020
@NickColley NickColley added this to the v2.0.2 milestone Jan 28, 2020
Copy link
Member

@36degrees 36degrees left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work getting to the bottom of this 👍

I've done some testing in IE11 (Windows 10), reproduced the original issue in the country and territory autocomplete, and tested the country and territory autocomplete with this branch installed.

Seems to fix the issue without reintroducing the original problem.

@NickColley NickColley merged commit df2ec1e into master Jan 30, 2020
Design System Sprint Board automation moved this from Needs review to Done Jan 30, 2020
@NickColley NickColley deleted the fix-long-click-issue-round-2 branch January 30, 2020 12:36
@36degrees 36degrees moved this from Done to Ready to release in Design System Sprint Board Jan 30, 2020
NickColley added a commit that referenced this pull request Jan 30, 2020
### Fixes

- [Pull request #388: Set aria-selected as a string instead of a boolean to avoid being dropped.](#388)
- [Pull request #400: Remove pointer events check.](#400)
- [Pull request #406: Make hint padding match input padding.](#406)
- [Pull request #407: Use a div element to wrap enhanced component.](#407)
- [Pull request #410: Fix long clicks not selecting options.](#410)
NickColley added a commit that referenced this pull request Jan 30, 2020
### Fixes

- [Pull request #388: Set aria-selected as a string instead of a boolean to avoid being dropped.](#388)
- [Pull request #400: Remove pointer events check.](#400)
- [Pull request #406: Make hint padding match input padding.](#406)
- [Pull request #407: Use a div element to wrap enhanced component.](#407)
- [Pull request #410: Fix long clicks not selecting options.](#410)
@NickColley NickColley mentioned this pull request Jan 30, 2020
@36degrees 36degrees moved this from Ready to release to Done in Design System Sprint Board Jan 31, 2020
peterjaric pushed a commit to uppsala-university/accessible-autocomplete that referenced this pull request Apr 28, 2020
### Fixes

- [Pull request alphagov#388: Set aria-selected as a string instead of a boolean to avoid being dropped.](alphagov#388)
- [Pull request alphagov#400: Remove pointer events check.](alphagov#400)
- [Pull request alphagov#406: Make hint padding match input padding.](alphagov#406)
- [Pull request alphagov#407: Use a div element to wrap enhanced component.](alphagov#407)
- [Pull request alphagov#410: Fix long clicks not selecting options.](alphagov#410)
peterjaric pushed a commit to uppsala-university/accessible-autocomplete that referenced this pull request Apr 28, 2020
### Fixes

- [Pull request alphagov#388: Set aria-selected as a string instead of a boolean to avoid being dropped.](alphagov#388)
- [Pull request alphagov#400: Remove pointer events check.](alphagov#400)
- [Pull request alphagov#406: Make hint padding match input padding.](alphagov#406)
- [Pull request alphagov#407: Use a div element to wrap enhanced component.](alphagov#407)
- [Pull request alphagov#410: Fix long clicks not selecting options.](alphagov#410)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Issue with selecting items from dropdown Single click using trackpad doesn't select option
2 participants