Skip to content

Commit 50b0dad

Browse files
committed
Merge branch 'release/0.4.1' into develop
2 parents 9230ccb + 510fd8a commit 50b0dad

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# React Selectize
22

3+
## v0.4.1 / 22nd January 2016
4+
* merged pull request (fixes an issue when unmounting with dropdown open) (#23), thanks @yuters
5+
36
## v0.4.0 / 21st January 2016
47
* Added two new props `delimiters` & `valuesFromPaste` (#21)
58

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ styles & features inspired by [React Select](http://jedwatson.github.io/react-se
1313

1414
[![](http://i.imgsafe.co/rQmogzn.gif)](http://furqanZafar.github.io/react-selectize/)
1515

16-
- [Changelog](CHANGELOG.md) (last updated on 21st January 2016)
16+
- [Changelog](CHANGELOG.md) (last updated on 22nd January 2016)
1717
- [API Reference](API.md)
1818

1919
# Motivation

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-selectize",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "A Stateless & Flexible Select component for React inspired by Selectize",
55
"main": "src/index.js",
66
"scripts": {

src/ReactSelectize.ls

+3-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,9 @@ 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" if @refs[\dropdown-transition]
470+
on-height-change: (height) ~>
471+
if @refs[\dropdown-transition]
472+
find-DOM-node @refs[\dropdown-transition] .style.height = "#{height}px"
471473

472474
# NO RESULT FOUND
473475
if @props.options.length == 0

test/common-tests.ls

+7-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require! \assert
44

55
# React
66
{create-class, create-element, DOM:{div, option, span}} = require \react
7-
{find-DOM-node, render} = require \react-dom
7+
{find-DOM-node, render, unmount-component-at-node} = require \react-dom
88

99
# TestUtils
1010
{find-rendered-DOM-component-with-class, scry-rendered-DOM-components-with-class,
@@ -378,4 +378,9 @@ module.exports = (select-class) !->
378378
input-element = get-input select
379379
set-input-text input-element, \app
380380
key-down input-element, which: 188
381-
find-rendered-DOM-component-with-class select, \simple-value
381+
find-rendered-DOM-component-with-class select, \simple-value
382+
383+
specify "unmount when open", ->
384+
select = create-select!
385+
click-to-open-select-control
386+
unmount-component-at-node (find-DOM-node select .parent-element)

0 commit comments

Comments
 (0)