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:
commit
a188bf381c
|
@ -64,7 +64,7 @@ export default function positionDropdown(element, opts) {
|
|||
|
||||
// Apply styles
|
||||
Object.entries(styles).forEach(([style, value]) => {
|
||||
if (value) {
|
||||
if (value != null) {
|
||||
element.style[style] = `${value.toFixed(0)}px`
|
||||
} else {
|
||||
element.style[style] = null
|
||||
|
|
Loading…
Reference in New Issue