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

Uncaught TypeError: Cannot read properties of undefined (reading 'cancel') #2257

Closed
xian107 opened this issue May 16, 2024 · 2 comments · Fixed by #2259
Closed

Uncaught TypeError: Cannot read properties of undefined (reading 'cancel') #2257

xian107 opened this issue May 16, 2024 · 2 comments · Fixed by #2259
Assignees

Comments

@xian107
Copy link

xian107 commented May 16, 2024

NutUI React 包名

@nutui/nutui-react

NutUI React 版本号

2.6.4

平台

h5

重现步骤

image
<Form.Item label="业务" name="picker" trigger="onConfirm" getValueFromEvent={(...args) => args[1]} onClick={(event, ref: any) => { ref.open(); }} rules={[ { required: true, message: "请选择业务", }, ]} > <Picker options={[busList]} onConfirm={onConfirmBus}> {(value: any = {}) => { return ( <Cell style={{ padding: 0, "--nutui-cell-divider-border-bottom": "0", }} className="nutui-cell--clickable" title={ value.length ? busList.filter((po) => po.value === value[0])[0]?.text : "请选择" } extra={<ArrowRight />} align="center" /> ); }} </Picker> </Form.Item>

期望的结果是什么?

不会报错

@Alex-huxiyang Alex-huxiyang linked a pull request May 16, 2024 that will close this issue
1 task
@Alex-huxiyang Alex-huxiyang self-assigned this May 16, 2024
@Alex-huxiyang
Copy link
Collaborator

需要您提供一个可以复现的完整demo,便于我们排查导致该问题的根本原因。

Copy link

你好 @xian107, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。请确保选择准确的版本。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants