Skip to content

Commit

Permalink
Push from menu-display-hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
muryoh committed Aug 6, 2024
1 parent c1f8a90 commit cd931ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ export function TextboxAutocomplete<Name extends string>({
class={createClassName([
menuStyles.menu,
disabled === true || isMenuVisible === false
? menuStyles.hidden
? menuStyles.displayNone
: null,
top === true
? textboxAutocompleteStyles.top
Expand Down
4 changes: 4 additions & 0 deletions packages/ui/src/css/menu.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
visibility: hidden;
}

.displayNone {
display: none;
}

@media screen and (-webkit-min-device-pixel-ratio: 1.5),
screen and (min-resolution: 1.5dppx) {
.menu {
Expand Down

0 comments on commit cd931ba

Please sign in to comment.