From b75814776a4cfbaed1a39bfeda4c2b0dba8be3a3 Mon Sep 17 00:00:00 2001 From: Rall3n Date: Wed, 22 Jun 2022 08:51:12 +0200 Subject: [PATCH] Prettier --- packages/react-select/src/Select.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/react-select/src/Select.tsx b/packages/react-select/src/Select.tsx index e4796de0cc..699f6119ce 100644 --- a/packages/react-select/src/Select.tsx +++ b/packages/react-select/src/Select.tsx @@ -730,7 +730,12 @@ export default class Select< // ensure select state gets blurred in case Select is programmatically disabled while focused // eslint-disable-next-line react/no-did-update-set-state this.setState({ isFocused: false }, this.onMenuClose); - } else if (!isFocused && !isDisabled && prevProps.isDisabled && this.inputRef === document.activeElement) { + } else if ( + !isFocused && + !isDisabled && + prevProps.isDisabled && + this.inputRef === document.activeElement + ) { // ensure select state gets focused in case Select is programatically re-enabled while focused (Firefox) // eslint-disable-next-line react/no-did-update-set-state this.setState({ isFocused: true });