@muonic/muon 0.0.2-experimental-250-e22ea6a.0 → 0.0.2-experimental-252-cafac09.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.2-beta.38](https://github.com/centrica-engineering/muon/compare/v0.0.2-beta.37...v0.0.2-beta.38) (2023-08-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* check for hidden submit type ([5c1863a](https://github.com/centrica-engineering/muon/commit/5c1863a016605ba5170ed1f4d01412b28f6c24b6))
|
|
11
|
+
|
|
5
12
|
### [0.0.2-beta.37](https://github.com/centrica-engineering/muon/compare/v0.0.2-beta.36...v0.0.2-beta.37) (2023-08-09)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -30,10 +30,12 @@ export class Form extends MuonElement {
|
|
|
30
30
|
// hack to stop browser validation pop up
|
|
31
31
|
this._nativeForm.setAttribute('novalidate', true);
|
|
32
32
|
// hack to force implicit submission (https://github.com/WICG/webcomponents/issues/187)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
if (!this._nativeForm.querySelector('[hidden][type="submit"]')) {
|
|
34
|
+
const input = document.createElement('input');
|
|
35
|
+
input.type = 'submit';
|
|
36
|
+
input.hidden = true;
|
|
37
|
+
this._nativeForm.appendChild(input);
|
|
38
|
+
}
|
|
37
39
|
}
|
|
38
40
|
});
|
|
39
41
|
}
|