Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Unset enabled Input visibility #5618

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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
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
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
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
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