From 049e47e9a5dc9a7d66adcbba5704cc206efeeb6e Mon Sep 17 00:00:00 2001 From: Lorenzo Natali Date: Mon, 19 Dec 2016 12:15:28 +0100 Subject: [PATCH] Fix issues in access manager (#1354) * Fix issues in access manager - Due to the update, we have to apply this fix to the RuleAttributeSelect to re-enable inline search * Removed loading and minor fixes On input change, set loding make the things break, because the state is managed internally. This fixes the select to work in both sync and async ways. --- .../manager/rulesmanager/RuleAttributeSelect.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/client/components/manager/rulesmanager/RuleAttributeSelect.jsx b/web/client/components/manager/rulesmanager/RuleAttributeSelect.jsx index 9fd7955eae..185b26f263 100644 --- a/web/client/components/manager/rulesmanager/RuleAttributeSelect.jsx +++ b/web/client/components/manager/rulesmanager/RuleAttributeSelect.jsx @@ -41,9 +41,9 @@ const RuleAttributeSelect = React.createClass({ }, getDefaultProps() { return { - loadOptions: () => [], + loadOptions: () => {}, onInputChange: () => {}, - onValueUpdated: () => [], + onValueUpdated: () => {}, options: [], disabled: false, paginated: false, @@ -114,11 +114,11 @@ const RuleAttributeSelect = React.createClass({ } this.props.loadOptions(); }} + searchable={true} + matchPos="any" + matchProp="any" clearable={this.props.clearable} onInputChange={(input) => { - if (!this.props.staticValues) { - this.setState({loading: true}); - } this.props.onInputChange(input); }} options={this.state.loading ? [] : options}