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: accept custom tabindex attribute #2443

Merged
merged 2 commits into from
Sep 2, 2021

Conversation

vursen
Copy link
Contributor

@vursen vursen commented Sep 2, 2021

Description

This PR fixes a regression that appeared in Flow ITs after we released the new @vaadin/button package:

When setting a custom tabindex attribute before the initialization of the button, the attribute gets overridden with the default tabindex value (0).

Fixes #2442

Type of change

  • Bugfix

Checklist

  • I have read the contribution guide: https://vaadin.com/docs-beta/latest/guide/contributing/overview/
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.

@vursen vursen force-pushed the fix/tabindex-mixin/custom-value branch from 60f1781 to 38ad222 Compare September 2, 2021 14:52
@vursen vursen force-pushed the fix/tabindex-mixin/custom-value branch from 18006d5 to 878f636 Compare September 2, 2021 15:01
@sonarcloud
Copy link

sonarcloud bot commented Sep 2, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Member

@web-padawan web-padawan left a comment

Choose a reason for hiding this comment

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

Confirmed that ButtonIT.clickOnTabIndexButtons_textIsDisplayed passes locally with this fix.

@web-padawan web-padawan merged commit 263e2df into master Sep 2, 2021
@web-padawan web-padawan deleted the fix/tabindex-mixin/custom-value branch September 2, 2021 15:10
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with platform 22.0.0.alpha3 and is also targeting the upcoming stable 22.0.0 version.

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

Successfully merging this pull request may close these issues.

[field-base] Regression: custom tabindex attribute gets overridden
3 participants