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" in Internet Explorer 11 #72

Open
1 of 8 tasks
srijken opened this issue Nov 3, 2016 · 3 comments
Open
1 of 8 tasks

"Unspecified error" in Internet Explorer 11 #72

srijken opened this issue Nov 3, 2016 · 3 comments

Comments

@srijken
Copy link

srijken commented Nov 3, 2016

When opening an app that contains this element, IE11 throws an error

Expected outcome

No error :)

Actual outcome

2016-11-03_16-21-17

Live Demo

https://tts-dev.competence.biz/

Steps to reproduce

Put this on the page:

Build with polymer build
Deploy unbundled files
Visit with IE11

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
@srijken
Copy link
Author

srijken commented Nov 14, 2016

This was due to databinding to a null value, not sure if that should work?

@bmwalters
Copy link

This is still an issue. @srijken Thanks for noting what caused the issue for you. It helped me work around the issue when I encountered it.

With this markup:
<gold-phone-input value="{{someObject.someProperty}}"></gold-phone-input>

This code will cause this error on IE 11

Polymer({
  is: "foo-bar",

  properties: {
    someObject: {
      type: Object,
      value: {}
    }
  }

  // ...
})

But this will not

Polymer({
  is: "foo-bar",

  properties: {
    someObject: {
      type: Object,
      value: {
        someProperty: ""
      }
    }
  }

  // ...
})

@adi130987
Copy link

adi130987 commented Apr 13, 2017

I think I have the same issue on an element I built and so far my issue is related on setting iron-input selectionStart and selectionEnd.

Update: updateValueAndPreserveCaret from PaperInputBehavior is also trying to update input selectionStart and selectionEnd and on IE11 the error is catched here, ignored and continues with setting the value provided.

In this element there is this code:

// Advance or back up the caret based on the change that happened before it.
this.$.input.selectionStart = this.$.input.selectionEnd = start + dashesDifference;

I belive here is where IE11 throws this generic error.

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

3 participants