Merge pull request #385 from ing-bank/fix/buttonClickIE11

fix(button): make click event work in ie11
This commit is contained in:
gerjanvangeest 2019-11-19 09:56:47 +01:00 committed by GitHub
commit b1954eb905
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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');