Merge pull request #385 from ing-bank/fix/buttonClickIE11
fix(button): make click event work in ie11
This commit is contained in:
commit
b1954eb905
1 changed files with 0 additions and 4 deletions
|
|
@ -185,10 +185,6 @@ export class LionButton extends DisabledWithTabIndexMixin(SlotMixin(LitElement))
|
||||||
* without side effects caused by the click bubbling back up to lion-button.
|
* without side effects caused by the click bubbling back up to lion-button.
|
||||||
*/
|
*/
|
||||||
__clickDelegationHandler(e) {
|
__clickDelegationHandler(e) {
|
||||||
if (this.constructor.__isIE11()) {
|
|
||||||
e.stopPropagation();
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((this.type === 'submit' || this.type === 'reset') && e.target === this) {
|
if ((this.type === 'submit' || this.type === 'reset') && e.target === this) {
|
||||||
if (this._form) {
|
if (this._form) {
|
||||||
const nativeButton = document.createElement('button');
|
const nativeButton = document.createElement('button');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue