nutui-react icon indicating copy to clipboard operation
nutui-react copied to clipboard

fix(picker): 函数调用之前检查 locale 是否已经定义

Open Alex-huxiyang opened this issue 9 months ago • 2 comments

  • [x] 日常 bug 修复

Summary by CodeRabbit

  • 修复
    • 在选择器组件中,使用可选链(?.)来安全访问 locale 对象的 cancel 属性,解决了当 locale 可能为 nullundefined 时导致的问题。

Alex-huxiyang avatar May 16 '24 10:05 Alex-huxiyang