Fix nullish check in position dropdown logic

This commit is contained in:
Andrew Kingston 2023-07-25 11:53:03 +01:00
parent 19adb60267
commit 58820cacdb
1 changed files with 1 additions and 1 deletions

View File

@ -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