Element: [Bug Report] DateTime Picker bug

Created on 23 Apr 2019  ·  4Comments  ·  Source: ElemeFE/element

Element UI version

2.6.1

OS/Browsers version

谷歌浏览器

Vue version

2.7.2

Reproduction Link

无连接

Steps to reproduce

在使用DateTimePicker组件的时候,当点击日期时间选择器的时候报错,TypeError: mask.replace is not a function,

What is Expected?

帮我解决这个问题,使DateTimePicker能使用

What is actually happening?

帮我解决这个问题,使DateTimePicker能使用


image

repro

Most helpful comment

I caught the same error
It happened because in my global mixin there was a function with the same name as the elements component had. It was dateFormat. When I was change the name, problem is gone

All 4 comments

Translation of this issue:

Element UI version

2.6.1

OS/Browsers version

Chrome

Vue version

2.7.2

Reproduction Link

Connectionless

Steps to reproduce

When using the DateTime Picker component, when clicking on the date and time selector, an error is reported. TypeError: mask. replace is not a function.

What is Expected?

Help me solve this problem so that DateTime Picker can use it

What is actually happening?

Help me solve this problem so that DateTime Picker can use it

image

请提供重现链接

Issues without a valid reproduction link will be closed directly.

I caught the same error
It happened because in my global mixin there was a function with the same name as the elements component had. It was dateFormat. When I was change the name, problem is gone

Was this page helpful?
0 / 5 - 0 ratings

Related issues

no5no6 picture no5no6  ·  3Comments

fscardua picture fscardua  ·  3Comments

akaylh picture akaylh  ·  3Comments

zhguokai picture zhguokai  ·  3Comments

yubo111 picture yubo111  ·  3Comments