diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/index.js b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/index.js index 5ac594328f..bfbf97701b 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/index.js +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/index.js @@ -45,6 +45,6 @@ export default [ }, { name: "Clear Form", - component: ClearForm + component: ClearForm, }, ] diff --git a/packages/client/src/constants.js b/packages/client/src/constants.js index 049b16801b..7204b8c951 100644 --- a/packages/client/src/constants.js +++ b/packages/client/src/constants.js @@ -6,7 +6,7 @@ export const ActionTypes = { ValidateForm: "ValidateForm", RefreshDatasource: "RefreshDatasource", SetDataProviderQuery: "SetDataProviderQuery", - ClearForm: "ClearForm" + ClearForm: "ClearForm", } export const ApiVersion = "1" diff --git a/packages/client/src/utils/buttonActions.js b/packages/client/src/utils/buttonActions.js index 9dd32561d7..ea29180d36 100644 --- a/packages/client/src/utils/buttonActions.js +++ b/packages/client/src/utils/buttonActions.js @@ -103,7 +103,7 @@ const handlerMap = { ["Validate Form"]: validateFormHandler, ["Refresh Datasource"]: refreshDatasourceHandler, ["Log Out"]: logoutHandler, - ["Clear Form"]: clearFormHandler + ["Clear Form"]: clearFormHandler, } const confirmTextMap = { diff --git a/packages/standard-components/src/forms/InnerForm.svelte b/packages/standard-components/src/forms/InnerForm.svelte index 55e14217e1..cd135c1551 100644 --- a/packages/standard-components/src/forms/InnerForm.svelte +++ b/packages/standard-components/src/forms/InnerForm.svelte @@ -68,9 +68,9 @@ const fields = Object.keys(fieldMap) fields.forEach(field => { const { fieldApi } = fieldMap[field] - fieldApi.clearValue(); + fieldApi.clearValue() }) - } + }, } // Provide both form API and state to children