Skip to content

fix: trigger onChange twice when inputting using the input method - #61

Merged
MadCcc merged 2 commits into
masterfrom
fix-onchange-twice
Dec 28, 2023
Merged

fix: trigger onChange twice when inputting using the input method#61
MadCcc merged 2 commits into
masterfrom
fix-onchange-twice

Conversation

@yoyo837

@yoyo837yoyo837 commented Dec 27, 2023

Copy link
Copy Markdown
Member

Same as what #60 wants to do. Test case code writing also comes from it.

fixant-design/ant-design#46587
close#60

@codecov

codecovBot commented Dec 27, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9640649) 97.31% compared to head (52cf72b) 97.34%.

Additional details and impacted files
@@ Coverage Diff @@## master #61 +/- ##
==========================================
+ Coverage 97.31% 97.34% +0.02% 
==========================================
Files 5 5 Lines 186 188 +2 Branches 68 69 +1 ==========================================
+ Hits 181 183 +2 
Misses 5 5 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment threadsrc/Input.tsx Outdated
| React.ChangeEvent<HTMLInputElement>
| React.CompositionEvent<HTMLInputElement>,
currentValue: string,
fromCompositionEnd?: boolean,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

这个最好是 info: { source: 'compositionEnd' }

Comment threadsrc/Input.tsx Outdated
| React.ChangeEvent<HTMLInputElement>
| React.CompositionEvent<HTMLInputElement>,
currentValue: string,
fromCompositionEnd?: boolean,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

这个最好是 info: { source: 'compositionEnd' }

Sign up for freeto 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.

Input onChange trigger two times when input chinese

2 participants

@yoyo837@MadCcc