Skip to content

Commit 1463ce6

Browse files
committed
highlighted-uid & on-highlighted-uid-change props furqanZafar#56
1 parent 3227517 commit 1463ce6

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/DropdownMenu.ls

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ module.exports = create-class do
121121

122122
on-mouse-out: !~>
123123
if !@props.scroll-lock
124-
@props.on-highlighted-uid-change undefined
124+
<~ @props.on-highlighted-uid-change undefined
125125

126126
render-item: @props.render-option
127127
} <<<
@@ -131,7 +131,7 @@ module.exports = create-class do
131131
on-click: !~> @props.on-option-click @props.highlighted-uid
132132
on-mouse-over: ({current-target}) !~>
133133
if !@props.scroll-lock
134-
@props.on-highlighted-uid-change uid
134+
<~ @props.on-highlighted-uid-change uid
135135

136136
# render-dropdown :: ComputedState -> ReactElement
137137
render-dropdown: ({dynamic-class-name}) ->

src/MultiSelect.ls

-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ module.exports = React.create-class do
215215
(o, callback) ~>
216216
<~ @set-state "#{p}" : o
217217
callback!
218-
219218
@props[camelize "on-#{p}-change"] o, (->)
220219

221220
# both p and its change callback are coming from state

src/ReactSelectize.ls

+1-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ module.exports = create-class do
411411

412412
# if the list of options was closed then reset highlighted-uid
413413
if !@props.open and prev-props.open
414-
@props.on-highlighted-uid-change undefined
414+
<~ @props.on-highlighted-uid-change undefined
415415

416416
# component-will-receive-props :: Props -> ()
417417
component-will-receive-props: (props) !->

0 commit comments

Comments
 (0)