Merge pull request #11345 from Budibase/fix/nullish-popover-styles

Fix nullish check bug causing options fields to break on mobile sometimes
This commit is contained in:
Andrew Kingston 2023-07-25 16:12:47 +01:00 committed by GitHub
commit a188bf381c
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ export default function positionDropdown(element, opts) {
// Apply styles // Apply styles
Object.entries(styles).forEach(([style, value]) => { Object.entries(styles).forEach(([style, value]) => {
if (value) { if (value != null) {
element.style[style] = `${value.toFixed(0)}px` element.style[style] = `${value.toFixed(0)}px`
} else { } else {
element.style[style] = null element.style[style] = null