Skip to content

Commit b4e7d60

Browse files
committed
Fix an issue when unmounting with the dropdown open
1 parent 37ad981 commit b4e7d60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ReactSelectize.ls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ module.exports = create-class do
467467
class-name: \dropdown
468468
key: \dropdown
469469
ref: \dropdown
470-
on-height-change: (height) ~> find-DOM-node @refs[\dropdown-transition] .style.height = "#{height}px"
470+
on-height-change: (height) ~> find-DOM-node @refs[\dropdown-transition] .style.height = "#{height}px" if @refs[\dropdown-transition]
471471

472472
# NO RESULT FOUND
473473
if @props.options.length == 0

0 commit comments

Comments
 (0)