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

IE下点击RangePicker会闪一下关闭,openChange执行3次 #865

Closed
1 task
YaomiHuang opened this issue Jun 14, 2019 · 8 comments
Closed
1 task

IE下点击RangePicker会闪一下关闭,openChange执行3次 #865

YaomiHuang opened this issue Jun 14, 2019 · 8 comments
Assignees
Labels

Comments

@YaomiHuang
Copy link

YaomiHuang commented Jun 14, 2019

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

Version

1.3.9

Environment

windows7,IE10,vue2.5.17

Reproduction link

Edit on CodeSandbox

Steps to reproduce

使用日历控件,在IE下点击RangePicker展开后马上关闭
发现openChange执行了3次
后添加 placeholder 属性后,该BUG消失,openChange执行一次
请问能告知原因嘛?

What is expected?

想知道原因。

What is actually happening?

设置了defaultValue及defaultPickerValue
详情见以上代码

@sendya
Copy link
Member

sendya commented Jun 18, 2019

经过一系列的排查,暂时定位到的是 本地化 语言导致的,当我切换到 en_US 的本地化语言时,这个问题就不存在了。
切换到 `zh_CN 时,又复现了。

有可能是语言化处理的时候丢失了什么字段,目前还不好确定
这个问题还得继续跟踪才能找到真正原因。

@YaomiHuang
Copy link
Author

经过一系列的排查,暂时定位到的是 本地化 语言导致的,当我切换到 en_US 的本地化语言时,这个问题就不存在了。
切换到 `zh_CN 时,又复现了。

有可能是语言化处理的时候丢失了什么字段,目前还不好确定
这个问题还得继续跟踪才能找到真正原因。

那添加 placeholder 属性后,该BUG为什么就消失了?
这种BUG的话 我要关闭issue么?

@tangjinzhou
Copy link
Member

不用关闭,方便进一步跟踪

@betgar
Copy link

betgar commented Jul 1, 2019

#701 和这个应该是同一类问题

@betgar
Copy link

betgar commented Jul 1, 2019

RangePicker在ie下有值的情况无法展开的问题,你和我说英文版没问题,我猜测和时间格式有关系,因为es5之前Date.parse行为诡异,而中文和英文版最重要的差异是这个,new Date('2019-01-01')和new Date('2019/01/01')初始化的time是不同的

@betgar
Copy link

betgar commented Jul 1, 2019

@sendya @tangjinzhou
我想我找到问题所在了,相关的issues这里提一下 #92, 和 vuejs/vue#7138
image

而且我尝试把placeholder="['', '']"或者在中文模式下placeholder="['left', 'right']"修改为英文,这个bug就不会重现,看caniuse和vuejs/vue#7138 这个属于IE的bug。

@tangjinzhou
Copy link
Member

可以先把 placeholder 改成英文临时解决下,很快修复上线

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants