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

Unspecified error on IE 11 #11414

Closed
zl7261 opened this issue May 27, 2020 · 2 comments
Closed

Unspecified error on IE 11 #11414

zl7261 opened this issue May 27, 2020 · 2 comments

Comments

@zl7261
Copy link

zl7261 commented May 27, 2020

Version

2.6.11

Reproduction link

https://github.com/zl7261/ytms-simple

Steps to reproduce

I use a computed variable to control the slide menu route open or off.
Pretty simple and works.

But on IE 11, it doesn't work.

What is expected?

Slide Menu.

What is actually happening?

Error log.


  1. npm run serve access /login
  2. the password component has a bug that will not accept init input, but when you blur and focus again, it will fix.
  3. type any string to pass login.
  4. click the left slide menu button.
  5. here is error log on ie11
    image
@posva
Copy link
Member

posva commented May 27, 2020

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.


That's not a valid reproduction

@posva posva closed this as completed May 27, 2020
@zl7261
Copy link
Author

zl7261 commented May 28, 2020

I put a debugger in vue.runtime.esm.js.
The result is that it is a calc style error cause by calc

var setProp = function (el, name, val) {
  /* istanbul ignore if */
  if (cssVarRE.test(name)) {
    el.style.setProperty(name, val);
  } else if (importantRE.test(val)) {
    el.style.setProperty(hyphenate(name), val.replace(importantRE, ''), 'important');
  } else {
    var normalizedName = normalize(name);
    if (Array.isArray(val)) {
      // Support values array created by autoprefixer, e.g.
      // {display: ["-webkit-box", "-ms-flexbox", "flex"]}
      // Set them one by one, and the browser will only set those it can recognize
      for (var i = 0, len = val.length; i < len; i++) {
        el.style[normalizedName] = val[i];
      }
    } else {
// error in here 
// document.querySelector('#test').style['height']='calc(100% - 0)'
      el.style[normalizedName] = val;

    }
  }
};
   <slide-router class="layout-slide-menu"
                  :style="{ height: `calc(100% - ${menuFold ? '0' : '72px'})` }"
    />

which calc must have a 'px' unit on the IE browser.

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

No branches or pull requests

2 participants