explorer: Fix search bar paste on mobile (#11735)

This commit is contained in:
Justin Starry 2020-08-20 22:01:34 +08:00 committed by GitHub
parent c8b40da7ab
commit dc17e2983d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -40,6 +40,11 @@ export function SearchBar() {
blurInputOnSelect
onMenuClose={() => selectRef.current?.blur()}
onChange={onChange}
styles={{
/* work around for https://github.com/JedWatson/react-select/issues/3857 */
placeholder: (style) => ({ ...style, pointerEvents: "none" }),
input: (style) => ({ ...style, width: "100%" }),
}}
onInputChange={onInputChange}
components={{ DropdownIndicator }}
classNamePrefix="search-bar"

View File

@ -190,3 +190,11 @@ h4.slot-pill {
max-width: 120px;
}
}
// work around for https://github.com/JedWatson/react-select/issues/3857
.search-bar__input {
width: 100% !important;
input {
width: 100% !important;
}
}