Skip to content

Commit cf5d82c

Browse files
committed
add px to dropdown-menu.style.bottom when dropdown-direction is -1 furqanZafar#50
1 parent 1463ce6 commit cf5d82c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/DropdownMenu.ls

+3-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ module.exports = create-class do
186186
component-did-update: !->
187187
dropdown-menu = find-DOM-node @refs.dropdown-menu-wrapper ? @refs.dropdown-menu
188188
..?style.bottom = switch
189-
| @props.dropdown-direction == -1 => @props.bottom-anchor!.offset-height + dropdown-menu.style.margin-bottom
189+
| @props.dropdown-direction == -1 =>
190+
"#{@props.bottom-anchor!.offset-height + dropdown-menu.style.margin-bottom}px"
191+
190192
| _ => ""
191193

192194
# highlight-and-scroll-to-option :: Int, (() -> ())? -> ()

0 commit comments

Comments
 (0)