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

select element can't be rendered correctly by vue 2.0.0 (or above) in IE 11 #6209

Closed
nightost opened this issue Jul 25, 2017 · 4 comments
Closed
Labels

Comments

@nightost
Copy link

Version

2.4.2

Reproduction link

https://jsfiddle.net/ntdd9g2a/86/

Steps to reproduce

  1. open the link in IE11
  2. see the select element does't be rendered correctly

What is expected?

The second option('菜单二') in select element should be in view

What is actually happening?

The third option('菜单三') in select element is still in view


I have to use setTimeout to solve this problem. So i want to know how it happened

@posva
Copy link
Member

posva commented Jul 25, 2017

There seems to be a problem, indeed. I'm not sure if we already fixed this but didn't released it yet though

@jkzing
Copy link
Member

jkzing commented Jul 25, 2017

@posva , I didn't find the code on dev or a PR fixed this problem, so #6213 😁

@posva posva added the bug label Aug 7, 2017
@sidecut
Copy link

sidecut commented Aug 8, 2017

Workaround for the jsFiddle example until this is fixed (which probably doesn't work in SSR):

  mounted: function() {
    var self = this;
    window.setTimeout(function() {
      self.selected = '2';
    }, 0);

Vue.nextTick() did not work.
I forked the OP jsFiddle here: https://jsfiddle.net/sidecut/ncznhLt8/

@nightost
Copy link
Author

Thank you for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants