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

refactor: remove not working logic, reorganize focus tests #7143

Merged
merged 2 commits into from
Feb 23, 2024

Conversation

web-padawan
Copy link
Member

@web-padawan web-padawan commented Feb 23, 2024

Description

As described in #4148, currently the logic for restoring focus-ring does not work as expected so it can be removed.
The only case for this logic is outside click. On item click, Esc or Enter key the <input> doesn't lose focus.

The logic was added in vaadin/vaadin-combo-box#599. However, latest V14 version also seems to have the issue.

Note: I quickly tried to apply the fix for a similar issue in the vaadin-date-picker - #4341. However, it causes a bunch of tests to fail, apparently due to validation not run on outside click with that approach (or maybe I just got it wrong).

For now, the test about outside click contains FIXME with a commented line, to be fixed later.

Type of change

  • Refactor / tests

Co-authored-by: Sergey Vinogradov <[email protected]>
Copy link

Quality Gate Passed Quality Gate passed

Issues
1 New issue

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@web-padawan web-padawan removed the request for review from tomivirkki February 23, 2024 11:12
@web-padawan web-padawan merged commit b4fa5d4 into main Feb 23, 2024
9 checks passed
@web-padawan web-padawan deleted the refactor/combo-box-focus-ring branch February 23, 2024 11:36
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

Successfully merging this pull request may close these issues.

2 participants