Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Innders committed Aug 19, 2024
1 parent 75b59ff commit a082c2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
6 changes: 1 addition & 5 deletions src/Dropdowns/Dropdown/DefaultValueTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,7 @@ export const DefaultValueTemplate: FC<DefaultValueTemplateProps> = ({
<>
<ContentStyled>
<ValueStyled style={{ opacity: 0.5 }}>
{value === null
? nullPlaceholder || '(no value)'
: onClearNull
? '(empty list)'
: placeholder}
{value === null ? nullPlaceholder || '(no value)' : placeholder}
</ValueStyled>
</ContentStyled>
{onClearNull && (
Expand Down
2 changes: 1 addition & 1 deletion src/Dropdowns/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ export const Dropdown = forwardRef<DropdownRef, DropdownProps>(
.filter((o) => !disabledValues.includes(o))
.filter((o) => o !== selectAllKey)

submitChange(allSelected, true)
submitChange(allSelected, multiSelectClose)

if (typeof onSelectAll === 'function') onSelectAll(allSelected)
return
Expand Down
6 changes: 1 addition & 5 deletions src/Inputs/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ export const StyledInput = styled.input`
max-height: var(--base-input-size);
padding: 0 8px;
&:focus {
outline: 1px solid var(--md-sys-color-primary);
}
&.error,
&:invalid {
border-color: var(--md-sys-color-error);
Expand Down Expand Up @@ -54,7 +50,7 @@ export const StyledToggleInput = styled.div`
top: 50%;
transform: translateY(-50%);
color: var(--md-sys-color-outline);
&:hover {
&:hover {
color: var(--md-sys-color-on-surface);
}
}
Expand Down

0 comments on commit a082c2c

Please sign in to comment.