Skip to content

Commit

Permalink
fix: select component style
Browse files Browse the repository at this point in the history
  • Loading branch information
hamed-musallam committed Aug 30, 2024
1 parent 08739b2 commit f1a24e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/component/elements/Select2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ type ReturnedUseSelectOptions = ReturnType<typeof useSelect>;
export type Select2Props<T extends Record<string, any> = SelectDefaultItem> =
Omit<
SelectProps<T>,
keyof Omit<ReturnedUseSelectOptions, 'onItemSelect' | 'value'>
keyof Omit<
ReturnedUseSelectOptions,
'onItemSelect' | 'value' | 'popoverProps'
>
> &
SelectOptions<T> & {
selectedButtonProps?: Omit<ButtonProps, 'text'>;
Expand Down Expand Up @@ -60,6 +63,7 @@ function InnerSelect2<T extends Record<string, any> = SelectDefaultItem>(
intent,
placeholder = '',
filterPlaceholder,
popoverProps,
getSelectedText,
...otherProps
} = props;
Expand Down Expand Up @@ -101,6 +105,7 @@ function InnerSelect2<T extends Record<string, any> = SelectDefaultItem>(
{...otherProps}
placeholder={filterPlaceholder}
fill={fill}
popoverProps={{ minimal: true, ...popoverProps }}
>
<Button
ref={ref}
Expand Down
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import 'modern-normalize/modern-normalize.css';
import 'react-science/styles/preflight.css';
import '@blueprintjs/core/lib/css/blueprint.css';
import '@blueprintjs/icons/lib/css/blueprint-icons.css';
import '@blueprintjs/select/lib/css/blueprint-select.css';

import './demo/index.css';

Expand Down

0 comments on commit f1a24e5

Please sign in to comment.