Skip to content

Commit

Permalink
Comments (deephaven#2065)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Jun 12, 2024
1 parent 530a1bb commit e93e6fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/components/src/spectrum/comboBox/ComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export function ComboBox({
// eslint-disable-next-line react/jsx-props-no-spreading
{...comboBoxProps}
UNSAFE_className={cl('dh-combobox', UNSAFE_className)}
// Type assertions are necessary here since Spectrum types don't account
// for number and boolean key values even though they are valid runtime
// values.
defaultSelectedKey={
defaultSelectedKey as SpectrumComboBoxProps<NormalizedItem>['defaultSelectedKey']
}
Expand Down
3 changes: 3 additions & 0 deletions packages/components/src/spectrum/picker/Picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export function Picker({
// eslint-disable-next-line react/jsx-props-no-spreading
{...pickerProps}
UNSAFE_className={cl('dh-picker', UNSAFE_className)}
// Type assertions are necessary here since Spectrum types don't account
// for number and boolean key values even though they are valid runtime
// values.
defaultSelectedKey={
defaultSelectedKey as NormalizedSpectrumPickerProps['defaultSelectedKey']
}
Expand Down

0 comments on commit e93e6fc

Please sign in to comment.