PolymerElements / iron-input

An input with data binding
https://webcomponents.org/element/PolymerElements/iron-input
33 stars 45 forks source link

Firefox throws when dispatchEvent called on a `disabled` and unattached input #47

Closed kevinpschaaf closed 8 years ago

kevinpschaaf commented 9 years ago

Moved from https://github.com/Polymer/polymer/issues/1936.

Repro is here (fails in FF):

Firefox has a bug where calling dispatchEvent on a non-attached and disabled input throws.

Firefox bugs:

This can happen when any notify: true value is set on a disabled input type extension before attached, which can happen via a binding, during configuration of a default value, or by setting a property in ready when it is in the local-DOM of another element (since it won't be attached until after ready).

After considering how we'd fix this bug in Polymer core, we decided we'd rather just fix it locally in iron-input for now, to avoid adding a complex whitelist system in Polymer core to work around this Firefox bug. If this becomes more of a problem outside of iron-input we can consider a more general solution.

srikkbhat commented 8 years ago

Is there any workaround for this? My app does not even load in firefox and I don't know when this issue is going to be fixed.

FLamparski commented 8 years ago

Is this released yet?

notwaldorf commented 8 years ago

@FLamparski Yup!