From c6c9c0473b282cc4ff2be3ef76746f6e67f81028 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Thu, 10 Jan 2019 12:07:10 +0300 Subject: [PATCH] Hidden select should always be rendered --- src/components/dropdown/Dropdown.js | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/components/dropdown/Dropdown.js b/src/components/dropdown/Dropdown.js index 9cc1fab09a..4a49714f2c 100644 --- a/src/components/dropdown/Dropdown.js +++ b/src/components/dropdown/Dropdown.js @@ -506,22 +506,19 @@ export class Dropdown extends Component { } renderHiddenSelect() { - if(this.props.autoWidth) { - let placeHolderOption = ; - let options = this.props.options && this.props.options.map((option, i) => { - return ; - }); + let placeHolderOption = ; + let options = this.props.options && this.props.options.map((option, i) => { + return ; + }); - return (
- -
); - } - else { - return null; - } + return ( +
+ +
+ ); } renderKeyboardHelper() {