From 0f2dfc63d2defce1e25490126905e67cf55a4e7f Mon Sep 17 00:00:00 2001 From: Mikhail Bashkirov Date: Wed, 22 May 2019 16:27:15 +0200 Subject: [PATCH 1/2] fix(input-datepicker): prevent button from submitting forms Co-authored-by: Daniel Alarcon Amador --- packages/input-datepicker/package.json | 3 ++- .../input-datepicker/src/LionInputDatepicker.js | 1 + .../test/lion-input-datepicker.test.js | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/packages/input-datepicker/package.json b/packages/input-datepicker/package.json index f34f80e72..9303d1173 100644 --- a/packages/input-datepicker/package.json +++ b/packages/input-datepicker/package.json @@ -46,6 +46,7 @@ "@lion/button": "^0.1.14", "@open-wc/demoing-storybook": "^0.2.0", "@open-wc/testing": "^0.11.1", - "@polymer/iron-test-helpers": "^3.0.1" + "@polymer/iron-test-helpers": "^3.0.1", + "sinon": "^7.2.2" } } diff --git a/packages/input-datepicker/src/LionInputDatepicker.js b/packages/input-datepicker/src/LionInputDatepicker.js index 00ed23894..061311b04 100644 --- a/packages/input-datepicker/src/LionInputDatepicker.js +++ b/packages/input-datepicker/src/LionInputDatepicker.js @@ -274,6 +274,7 @@ export class LionInputDatepicker extends LionInputDate { // (a.k.a. dropdowns) as well. Important: will be breaking for subclassers return html`