Fix nullish check in position dropdown logic
This commit is contained in:
parent
19adb60267
commit
58820cacdb
|
@ -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