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

ie11下 RangePicker选择面板无法展开 #701

Closed
1 task
luichooy opened this issue Apr 16, 2019 · 7 comments
Closed
1 task

ie11下 RangePicker选择面板无法展开 #701

luichooy opened this issue Apr 16, 2019 · 7 comments
Labels

Comments

@luichooy
Copy link

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

Version

1.3.8

Environment

win10,ie11

Reproduction link

https://vue.ant.design/components/date-picker-cn/#components-date-picker-demo-date-format

Steps to reproduce

  1. 鼠标点击RangePicker
  2. 选择面板展开
  3. 选择面板展开瞬间又自动收起

What is expected?

期望修复

What is actually happening?

ie11下选择面板无法展开,展开之后会立刻自动收起


官网 -> DatePicker日期选择框 ->日期格式 ->第三个例子RangePicker可以复现改问题

@wangxueliang
Copy link
Member

ref #626

@luichooy
Copy link
Author

@wangxueliang 已经做了polyfill还是不行呀

@betgar
Copy link

betgar commented Jul 1, 2019

image

IE 版本为上图,问题依然能够重现

@betgar
Copy link

betgar commented Jul 1, 2019

range-picker
当有值的情况下,panel无法展开

@betgar
Copy link

betgar commented Jul 1, 2019

最近遇到IE 11 RangePicker在已经有值的情况下,点击输入框无法展开的情况,我浏览了官方的issues,看到了 #608#626 的处理结果,但是发现,在IE 11的不同的minor版本下还是能够重现。
我尝试调试了一下源码,发现在DateInput#onInputChange方法中,有逻辑短路的情况:
format: 'YYYY-MM-DD'
selectValue-value

DateInput#onInputChange,这里出现了逻辑短路, selectedValue !== value 为true ,但是后面的表达式 为false, 然后this.__$emit('change', value)的其他处理函数触发了select事件,看下图的调用栈

if (selectedValue !== value || (selectedValue && value && !selectedValue.isSame(value))) {
        this.setState({
          str,
        });
        this.__emit('change', value);
      }

onInputChange --> OnCalendarSelect --> setOpen(false) ,导致被panel被关闭,因为对组件库的结构不是很了解,所以也不知道是否分析的正确,期待您的解答。

onEndInputSelect

@tangjinzhou
Copy link
Member

ref #865

@github-actions
Copy link

github-actions bot commented Jul 4, 2020

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 Jul 4, 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