Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Search focus lost compositing status #548

Merged
merged 2 commits into from Sep 17, 2020
Merged

fix: Search focus lost compositing status #548

merged 2 commits into from Sep 17, 2020

Conversation

afc163
Copy link
Member

@afc163 afc163 commented Sep 17, 2020

@vercel
Copy link

vercel bot commented Sep 17, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/react-component/select/px9p28x75
✅ Preview: https://select-git-fix-search.react-component.vercel.app

@@ -40,7 +40,7 @@ const SingleSelector: React.FC<SelectorProps> = props => {
const [inputChanged, setInputChanged] = React.useState(false);

const combobox = mode === 'combobox';
const inputEditable = combobox || (showSearch && open);
const inputEditable = combobox || showSearch;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

初始状态的 search input 就应该是 editable 状态,否则触发搜索后,输入法状态会被中断。

@codecov
Copy link

codecov bot commented Sep 17, 2020

Codecov Report

Merging #548 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #548   +/-   ##
=======================================
  Coverage   99.37%   99.37%           
=======================================
  Files          20       20           
  Lines         956      956           
  Branches      311      311           
=======================================
  Hits          950      950           
  Misses          5        5           
  Partials        1        1           
Impacted Files Coverage Δ
src/Selector/SingleSelector.tsx 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ba94960...3036dd9. Read the comment docs.

@afc163 afc163 merged commit 32e1861 into master Sep 17, 2020
@afc163 afc163 deleted the fix-search branch September 17, 2020 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant