@khanacademy/wonder-blocks-clickable 4.1.1 → 4.1.3
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 +15 -0
- package/dist/es/index.js +1 -0
- package/dist/index.js +1 -0
- package/package.json +2 -2
- package/src/components/__tests__/clickable-behavior.test.tsx +107 -101
- package/src/components/__tests__/clickable.test.tsx +56 -52
- package/src/components/clickable-behavior.ts +4 -0
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-clickable
|
|
2
2
|
|
|
3
|
+
## 4.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [874081aa]
|
|
8
|
+
- Updated dependencies [874081aa]
|
|
9
|
+
- Updated dependencies [a9bf603a]
|
|
10
|
+
- @khanacademy/wonder-blocks-tokens@1.2.0
|
|
11
|
+
|
|
12
|
+
## 4.1.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- e6433bee: Fix event bubbling on ClickableBehavior when submit is used.
|
|
17
|
+
|
|
3
18
|
## 4.1.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/es/index.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -328,6 +328,7 @@ class ClickableBehavior extends React__namespace.Component {
|
|
|
328
328
|
while (target) {
|
|
329
329
|
if (target instanceof window.HTMLFormElement) {
|
|
330
330
|
const event = new window.Event("submit", {
|
|
331
|
+
bubbles: true,
|
|
331
332
|
cancelable: true
|
|
332
333
|
});
|
|
333
334
|
target.dispatchEvent(event);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-clickable",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"description": "Clickable component for Wonder-Blocks.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime": "^7.18.6",
|
|
19
19
|
"@khanacademy/wonder-blocks-core": "^6.3.1",
|
|
20
|
-
"@khanacademy/wonder-blocks-tokens": "^1.
|
|
20
|
+
"@khanacademy/wonder-blocks-tokens": "^1.2.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"aphrodite": "^1.2.5",
|