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(select): prevent prop-types error by making tabIndex an optional prop #1640

Conversation

HendrikThePendric
Copy link
Contributor

@HendrikThePendric HendrikThePendric commented Nov 26, 2024

This PR prevents a prop-types error by making tabIndex an optional prop, which is not a problem since tabIndex also has a default value in the component.

I originally encountered this bug in the sharing dialog-after upgrading @dhis2/ui in the Dashboards App and was able to reproduce it bug in the "For dashboard with cascading sharing partial success" demo story. I have also been able to verify that this PR addresses the issue this way.

This is OK since `tabIndex` also has a default value in the component
@HendrikThePendric HendrikThePendric requested a review from a team as a code owner November 26, 2024 11:24
Copy link

sonarcloud bot commented Nov 26, 2024

@dhis2-bot
Copy link
Contributor

🚀 Deployed on https://pr-1640--dhis2-ui.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify November 26, 2024 11:28 Inactive
@HendrikThePendric HendrikThePendric merged commit b57b81c into master Nov 26, 2024
21 checks passed
@HendrikThePendric HendrikThePendric deleted the fix/make-tabindex-an-optional-prop-for-select-input-wrapper branch November 26, 2024 11:32
dhis2-bot added a commit that referenced this pull request Nov 26, 2024
## [10.1.2](v10.1.1...v10.1.2) (2024-11-26)

### Bug Fixes

* prevent prop-types error by making tabIndex an optional prop ([#1640](#1640)) ([b57b81c](b57b81c))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 10.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants