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

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

Open xian107 opened this issue 1 year ago • 2 comments

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>

期望的结果是什么?

不会报错

xian107 avatar May 16 '24 04:05 xian107

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

Miles-hxy avatar May 17 '24 06:05 Miles-hxy

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

github-actions[bot] avatar May 17 '24 06:05 github-actions[bot]