@microsoft/atlas-js
Advanced tools
Comparing version 1.8.0 to 1.9.0
@@ -194,3 +194,4 @@ import { generateElementId, kebabToCamelCase } from '../utilities/util'; | ||
init, | ||
form | ||
form, | ||
callback: async () => { } | ||
}, | ||
@@ -201,2 +202,5 @@ bubbles: true, | ||
const cancelled = !this.dispatchEvent(beforeSubmitEvent); | ||
if (beforeSubmitEvent.detail.callback) { | ||
await beforeSubmitEvent.detail.callback(); | ||
} | ||
if (cancelled) { | ||
@@ -203,0 +207,0 @@ return; |
{ | ||
"name": "@microsoft/atlas-js", | ||
"version": "1.8.0", | ||
"version": "1.9.0", | ||
"public": true, | ||
@@ -5,0 +5,0 @@ "description": "Scripts backing the Atlas Design System used by Microsoft's Developer Relations.", |
@@ -237,3 +237,4 @@ import { generateElementId, kebabToCamelCase } from '../utilities/util'; | ||
init, | ||
form | ||
form, | ||
callback: async () => {} | ||
}, | ||
@@ -245,2 +246,6 @@ bubbles: true, | ||
const cancelled = !this.dispatchEvent(beforeSubmitEvent); | ||
if (beforeSubmitEvent.detail.callback) { | ||
await beforeSubmitEvent.detail.callback(); | ||
} | ||
if (cancelled) { | ||
@@ -247,0 +252,0 @@ return; |
Sorry, the diff of this file is not supported yet
70522
1791