Skip to content

Commit

Permalink
Merge pull request #3 from divriots/menu-display-hidden2
Browse files Browse the repository at this point in the history
Push from menu-display-hidden
  • Loading branch information
muryoh authored Aug 6, 2024
2 parents c1f8a90 + cd931ba commit c988f38
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 c988f38

Please sign in to comment.