8000 a-date-picker getPopupContainer bug · Issue #6419 · vueComponent/ant-design-vue · GitHub
[go: up one dir, main page]

Skip to content
a-date-picker getPopupContainer bug #6419
Closed
@YDKD

Description

@YDKD
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.3.0-beta.4

Environment

Vue 3.2.47、Vite 4.1.4,Ant Design Vue 4.0.0-alpha.3、浏览器 Chroe

Reproduction link

https://github.com/vueComponent/ant-design-vue/blob/main/components/date-picker/generatePicker/generateSinglePicker.tsx

Steps to reproduce

使用方式

What is expected?

能够显示出时间组件

What is actually happening?

直接运行报错,检测代码报错内容大致如下:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'value')
at Proxy. (generateSinglePicker.js:207:82)
找到源码定位位置为:ant-design-vue/blob/main/components/date-picker/generatePicker/generateSinglePicker.tsx
227行: getPopupContainer={attrs.getCalendarContainer || getPopupContainer.value}


疑问:我在传递了 getPopupContainer之后,还是报错,
暂时解决报错方式:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0