Skip to content

Commit

Permalink
fix: Unset enabled Input visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
petrkrulis committed Apr 26, 2023
1 parent 1bbbc47 commit 0dadb41
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ exports[`defaults - snapshot 1`] = `
}
.emotion-6 {
visibility: visible;
visibility: unset;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ exports[`defaults - snapshot 1`] = `
}
.emotion-6 {
visibility: visible;
visibility: unset;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ exports[`defaults - snapshot 1`] = `
}
.emotion-6 {
visibility: visible;
visibility: unset;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ exports[`snapshot - defaults 1`] = `
}
.emotion-6 {
visibility: visible;
visibility: unset;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ exports[`defaults > snapshot 1`] = `
}
.emotion-6 {
visibility: visible;
visibility: unset;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
Expand Down
2 changes: 1 addition & 1 deletion packages/react-select/src/components/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const inputCSS = <
}: InputProps<Option, IsMulti, Group>,
unstyled: boolean
): CSSObjectWithLabel => ({
visibility: isDisabled ? 'hidden' : 'visible',
visibility: isDisabled ? 'hidden' : 'unset',
// force css to recompute when value change due to @emotion bug.
// We can remove it whenever the bug is fixed.
transform: value ? 'translateZ(0)' : '',
Expand Down

0 comments on commit 0dadb41

Please sign in to comment.