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

feat: support changeOnBlur #45395

Merged
merged 1 commit into from
Oct 18, 2023
Merged

feat: support changeOnBlur #45395

merged 1 commit into from
Oct 18, 2023

Conversation

zombieJ
Copy link
Member

@zombieJ zombieJ commented Oct 18, 2023

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Workflow
  • Other (about what?)

🔗 Related issue link

ref react-component/input-number#596

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English InputNumber support changeOnBlur prop to disable trigger onChange event when blur.
🇨🇳 Chinese InputNumber 添加 changeOnBlur 属性以支持在失去焦点时不触发 onChange 事件。

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

🚀 Summary

🤖 Generated by Copilot at 9eb9060

This pull request adds a new prop changeOnBlur to the InputNumber component, which allows users to control the onChange event behavior when the input loses focus. It also updates the documentation and the dependency version of rc-input-number accordingly.

🔍 Walkthrough

🤖 Generated by Copilot at 9eb9060

  • Add a new prop changeOnBlur to the InputNumber component to control the onChange event when the input loses focus (link, link)
  • Update the dependency version of rc-input-number to ~8.4.0 in package.json to reflect the new feature of changeOnBlur (link)

@stackblitz
Copy link

stackblitz bot commented Oct 18, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 18, 2023

@socket-security
Copy link

Updated dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
rc-input-number 8.3.0...8.4.0 None +0/-0 79 kB

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
./dist/antd.min.js 398.78 KB (+27 B 🔺)
./dist/antd-with-locales.min.js 458.09 KB (+21 B 🔺)

@argos-ci
Copy link

argos-ci bot commented Oct 18, 2023

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) 👍 Changes approved 1 change Oct 18, 2023, 2:45 AM

@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (3ab42ad) 100.00% compared to head (9eb9060) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##           feature    #45395   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          695       695           
  Lines        11709     11709           
  Branches      3128      3128           
=========================================
  Hits         11709     11709           

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

@zombieJ zombieJ merged commit 2e8e67f into feature Oct 18, 2023
96 checks passed
@zombieJ zombieJ deleted the input-number branch October 18, 2023 05:50
@MadCcc MadCcc mentioned this pull request Nov 3, 2023
20 tasks
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.

3 participants