From 08d3aeb8665f3682cb68d6ff41d5a0d7c8044807 Mon Sep 17 00:00:00 2001 From: Pavol Knapek Date: Fri, 15 Sep 2017 16:55:33 -0700 Subject: [PATCH 1/3] feat: Added the "readOnly" property --- src/MultiSelect.ls | 5 +++-- src/ReactSelectize.ls | 1 + src/SimpleSelect.ls | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/MultiSelect.ls b/src/MultiSelect.ls index 56f6792..7a6637f 100644 --- a/src/MultiSelect.ls +++ b/src/MultiSelect.ls @@ -74,13 +74,13 @@ module.exports = class MultiSelect extends React.Component # props { autofocus, autosize, cancel-keyboard-event-on-selection, delimiters, disabled, dropdown-direction, group-id, - groups, groups-as-columns, hide-reset-button, input-props, name, on-keyboard-selection-failed, render-toggle-button, + groups, groups-as-columns, hide-reset-button, input-props, name, on-keyboard-selection-failed, readOnly, render-toggle-button, render-group-title, render-reset-button, serialize, tether, tether-props, theme, transition-enter, transition-leave, transition-enter-timeout, transition-leave-timeout, uid }? = @props ReactSelectize { - + autofocus autosize cancel-keyboard-event-on-selection @@ -97,6 +97,7 @@ module.exports = class MultiSelect extends React.Component input-props name on-keyboard-selection-failed + readOnly render-group-title render-reset-button render-toggle-button diff --git a/src/ReactSelectize.ls b/src/ReactSelectize.ls index 77a5936..09c89a3 100644 --- a/src/ReactSelectize.ls +++ b/src/ReactSelectize.ls @@ -160,6 +160,7 @@ module.exports = class ReactSelectize extends React.Component ref: \search type: \text value: @props.search + readOnly: @props.readOnly # update the search text & highlight the first option on-change: ({current-target:{value}}) ~> diff --git a/src/SimpleSelect.ls b/src/SimpleSelect.ls index 6194b16..97c5b5a 100644 --- a/src/SimpleSelect.ls +++ b/src/SimpleSelect.ls @@ -78,7 +78,7 @@ module.exports = class SimpleSelect extends React.Component # props { autofocus, autosize, cancel-keyboard-event-on-selection, delimiters, disabled, dropdown-direction, group-id, - groups, groups-as-columns, hide-reset-button, name, input-props, on-blur-resets-input, render-toggle-button, + groups, groups-as-columns, hide-reset-button, name, input-props, on-blur-resets-input, readOnly, render-toggle-button, render-group-title, render-reset-button, serialize, tether, tether-props, theme, transition-enter, transition-leave, transition-enter-timeout, transition-leave-timeout, uid }? = @props @@ -101,6 +101,7 @@ module.exports = class SimpleSelect extends React.Component input-props name on-blur-resets-input + readOnly render-group-title render-reset-button render-toggle-button From ca86acfb5de7f6fb6ddfa2720cbb5aee51457db3 Mon Sep 17 00:00:00 2001 From: Pavol Knapek Date: Fri, 15 Sep 2017 17:03:32 -0700 Subject: [PATCH 2/3] fix: indentation --- src/MultiSelect.ls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MultiSelect.ls b/src/MultiSelect.ls index 7a6637f..a18dc18 100644 --- a/src/MultiSelect.ls +++ b/src/MultiSelect.ls @@ -80,8 +80,8 @@ module.exports = class MultiSelect extends React.Component }? = @props ReactSelectize { - - autofocus + + autofocus autosize cancel-keyboard-event-on-selection class-name: "multi-select #{@props.class-name}" From f877909f2e5d828c09f6ebc68f6a72d57cb65d87 Mon Sep 17 00:00:00 2001 From: Pavol Knapek Date: Fri, 15 Sep 2017 17:06:21 -0700 Subject: [PATCH 3/3] fix: indentation --- src/MultiSelect.ls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MultiSelect.ls b/src/MultiSelect.ls index a18dc18..84ebd79 100644 --- a/src/MultiSelect.ls +++ b/src/MultiSelect.ls @@ -80,8 +80,8 @@ module.exports = class MultiSelect extends React.Component }? = @props ReactSelectize { - - autofocus + + autofocus autosize cancel-keyboard-event-on-selection class-name: "multi-select #{@props.class-name}"