Skip to content

Commit

Permalink
fix select and autocomplete disabled UI issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rameshwar Verma committed Sep 30, 2024
1 parent e38024c commit 703f0ad
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oncehub/ui-react",
"private": false,
"version": "1.4.19",
"version": "1.4.20-beta.1.0",
"repository": {
"type": "git",
"url": "https://github.com/scheduleonce/once-ui-react"
Expand Down
7 changes: 5 additions & 2 deletions src/lib/components/select/auto-complete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export const AutoComplete: FC<Props> = ({
<Combobox value={selected} onChange={onSelection} disabled={disable}>
{({ open }) => (
<div className={styles.autocomplete}>
<div ref={selectRef} className={`${styles.autocompleteContainer} ${disable ? 'disable' : ''}`}>
<div ref={selectRef} className={`${styles.autocompleteContainer} ${disable ? styles.disable : ''}`}>
<Combobox.Input
ref={inputRef}
data-testid={'select-input'}
Expand Down Expand Up @@ -187,7 +187,10 @@ export const AutoComplete: FC<Props> = ({
ref={inputButton}
onClick={getDropdownPosition}
>
<ChevronDownIcon className={`${styles.chevronDownIcon} ${disable ? 'disable' : ''}`} aria-hidden="true" />
<ChevronDownIcon
className={`${styles.chevronDownIcon} ${disable ? styles.disable : ''}`}
aria-hidden="true"
/>
</Combobox.Button>
</div>
{isMounted
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/select/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const Select: FC<Props> = ({ children, selected, onSelect, themeColor })
}
}}
style={{ borderBottomColor: themeColor && (isFocused || open) ? borderColor : '' }}
className={`${styles.selectButton} ${open ? ' open' : ''}`}
className={`${styles.selectButton} ${open ? styles.open : ''}`}
>
{selected && (
<span className={styles.selectValue}>
Expand Down

0 comments on commit 703f0ad

Please sign in to comment.