Skip to content

Commit

Permalink
Merge pull request #15448 from Budibase/fix-popover-styling
Browse files Browse the repository at this point in the history
Fix applying styles to Popover.
  • Loading branch information
samwho authored Jan 28, 2025
2 parents 69b5dce + 0c4c254 commit 189888e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/bbui/src/Actions/position_dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,12 @@ export default function positionDropdown(element: HTMLElement, opts: Opts) {
}

for (const [key, value] of Object.entries(styles)) {
element.style.setProperty(key, value ? `${value}px` : null)
const name = key as keyof Styles
if (value != null) {
element.style[name] = `${value}px`
} else {
element.style[name] = ""
}
}
}

Expand Down

0 comments on commit 189888e

Please sign in to comment.