fix(button): make click event work in ie11

This commit is contained in:
erik 2019-11-18 12:53:38 +01:00
parent e1485188a0
commit 0d7d513405

View file

@ -185,10 +185,6 @@ export class LionButton extends DisabledWithTabIndexMixin(SlotMixin(LitElement))
* without side effects caused by the click bubbling back up to lion-button.
*/
__clickDelegationHandler(e) {
if (this.constructor.__isIE11()) {
e.stopPropagation();
}
if ((this.type === 'submit' || this.type === 'reset') && e.target === this) {
if (this._form) {
const nativeButton = document.createElement('button');