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: NDS Select props are broken #1408

Merged
merged 8 commits into from
May 21, 2024
Merged

fix: NDS Select props are broken #1408

merged 8 commits into from
May 21, 2024

Conversation

haideralsh
Copy link
Contributor

Description

Attempting to fix the NDSSelect Props

Changes include

  • breaking change: a change that is not backwards-compatible and/or changes current functionality
  • fix: a non-breaking change that solves an issue
  • feature: a non-breaking change that adds functionality
  • chore: contains no changes affecting the library, such as documentation or test updates

Feature checklist

  • Appropriate tests have been added
  • Documentation has been updated
  • Accessibility has been considered

react-windowed-select does not forward <Option, IsMulti extends boolean, Group extends GroupBase<Option>>
downstream to the react-select resulting in mismatches between the expected types (defaulting to unknown)
and the actual types inferred by react-select.

This caused a problem for both the onChange and the custom components.
@haideralsh haideralsh marked this pull request as ready for review May 16, 2024 14:08
@haideralsh haideralsh requested a review from jherdman May 16, 2024 14:08
Copy link
Contributor

@jherdman jherdman left a comment

Choose a reason for hiding this comment

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

Could you cut a beta release for this so we can try it out?

Copy link
Contributor

@jherdman jherdman left a comment

Choose a reason for hiding this comment

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

Just a few initial notes

package.json Outdated Show resolved Hide resolved
src/Select/MenuList.tsx Show resolved Hide resolved
src/Select/MenuList.tsx Show resolved Hide resolved
@haideralsh haideralsh changed the base branch from master to beta May 21, 2024 21:09
@haideralsh haideralsh merged commit 7e8a055 into beta May 21, 2024
5 checks passed
@haideralsh haideralsh deleted the fix-nds-select-types branch May 21, 2024 21:12
haideralsh added a commit that referenced this pull request May 22, 2024
BREAKING CHANGE: removes the ability to pass custom props to the Select component.

* feat: remove react-windowed-select
* feat: Roll our own windowing Select
* chore: Inline react-select license
* chore: remove smoothscroll-polyfill: https://caniuse.com/css-scroll-behavior
github-actions bot pushed a commit that referenced this pull request May 22, 2024
# [11.0.0-beta.1](v10.2.4...v11.0.0-beta.1) (2024-05-22)

### Bug Fixes

* NDS Select props are broken ([#1408](#1408)) ([bc42a90](bc42a90))

### BREAKING CHANGES

* removes the ability to pass custom props to the Select component.

* feat: remove react-windowed-select
* feat: Roll our own windowing Select
* chore: Inline react-select license
* chore: remove smoothscroll-polyfill: https://caniuse.com/css-scroll-behavior
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.

None yet

2 participants