From 64a2b6fb023f807e283ee6ef7b5de8f240387c3e Mon Sep 17 00:00:00 2001 From: mertsincan Date: Thu, 20 Jun 2019 16:47:23 +0300 Subject: [PATCH] Refactor #933 - Fixed IE11 issue --- src/components/dropdown/Dropdown.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/dropdown/Dropdown.js b/src/components/dropdown/Dropdown.js index 043f923fba..85221334df 100644 --- a/src/components/dropdown/Dropdown.js +++ b/src/components/dropdown/Dropdown.js @@ -519,12 +519,13 @@ export class Dropdown extends Component { } renderHiddenSelect(selectedOption) { - let value = selectedOption ? selectedOption.value : null; - let option = selectedOption ? : null; + let placeHolderOption = ; + let option = selectedOption ? : null; return (
- this.nativeSelect = el} required={this.props.required} tabIndex="-1" aria-hidden="true"> + {placeHolderOption} {option}
@@ -628,6 +629,8 @@ export class Dropdown extends Component { if (this.props.tooltip) { this.renderTooltip(); } + + this.nativeSelect.selectedIndex = 1; } componentWillUnmount() { @@ -662,6 +665,8 @@ export class Dropdown extends Component { else this.renderTooltip(); } + + this.nativeSelect.selectedIndex = 1; } renderTooltip() {