typesnippet / antd-phone-input

Advanced, highly customizable phone input component for Ant Design.
https://playground.typesnippet.org/antd-phone-input-5.x/
MIT License
51 stars 10 forks source link

🐛 Bug Report - Using Antd Form `setFieldValue` or `setFieldsValue` to Update Value Doesn't Work #68

Closed nygmaaa closed 7 months ago

nygmaaa commented 9 months ago

Bug description

As title. Here's the reproduction link: https://stackblitz.com/edit/stackblitz-starters-wjzl1t?file=src%2FApp.tsx

Reproduction URL

https://stackblitz.com/edit/stackblitz-starters-wjzl1t?file=src%2FApp.tsx

Reproduction steps

  1. Use antd-phone-input in Antd Form.
  2. Try to update antd-phone-input value by using setFieldValue or setFieldsValue, doesn't work.

Screenshots

No response

Logs

No response

Browsers

Chrome

OS

Mac

ArtyomVancyan commented 9 months ago

@nygmaaa, first of all, thanks for the report. Currently, it is designed so that it does not handle form instance changes. However, big architectural changes are coming soon and I will consider and include this in the milestone as well.

nygmaaa commented 9 months ago

Thanks for the response, looking forward to the new changes, closing this issue since it's intended.

teamco commented 7 months ago

Any progress?

ArtyomVancyan commented 7 months ago

@teamco, I could not find a way to implement it yet, but as the feature is getting so needed, I'll try again.

ArtyomVancyan commented 7 months ago

@nygmaaa, @teamco, glad to inform you that the new release fixes the issue with the setFieldValue. Please upgrade the versions of your packages and enjoy.