iTwin / iTwinUI

A design system for building beautiful and well-working web interfaces.
https://itwin.github.io/iTwinUI/
MIT License
92 stars 35 forks source link

fix `styleType` being passed to DOM #1990

Closed mayank99 closed 3 weeks ago

mayank99 commented 3 weeks ago

Changes

LabeledSelect forces a styleType even when it's disallowed for non-native Select. This PR ensures that it's handled correctly by SelectButton, rather than being passed to the InputWithIcon DOM element along with ...rest props.

Testing

Tested that the prop doesn't appear in DOM

Docs

N/A. Too small of a change for changeset