Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Hotfix with display: flex being applied incorrectly when menu was closed (#905)

Martin Peeterscd5a411aad36
diff --git a/ui/component/or-mwc-components/src/or-mwc-input.ts b/ui/component/or-mwc-components/src/or-mwc-input.ts
index 5d25506a4..0905a0f9d 100644
--- a/ui/component/or-mwc-components/src/or-mwc-input.ts
+++ b/ui/component/or-mwc-components/src/or-mwc-input.ts
@@ -604,13 +604,13 @@ const style = css`
.mdc-menu__searchable {
overflow: hidden;
- flex-direction: column-reverse;
+ }
+ .mdc-menu__searchable.mdc-menu-surface--open {
display: flex;
+ flex-direction: column-reverse;
}
-
.mdc-menu__searchable.mdc-menu-surface--is-open-below {
flex-direction: column;
- display: flex;
}
`;