Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3ceb187d authored by VIAUD Nathan's avatar VIAUD Nathan
Browse files

Add onCheck event

parent d9602951
No related branches found
No related tags found
No related merge requests found
Pipeline #815881 passed
......@@ -116,6 +116,14 @@ function handleChangeRepeatInput(element, value, id: string): void {
// Repeat Input end
function onCheck(value: boolean, id:string) {
const element = editorStore.openedNodeId
? currentNode.data.elements.find(e => e.id === editorStore.openedElementId)
: currentNode.data;
element.formValues[id] = value;
graphService.writeProjectData();
}
</script>
......@@ -129,6 +137,7 @@ function handleChangeRepeatInput(element, value, id: string): void {
:field-index="fieldIndex"
:input-value="getInputValue(input)"
@input="onInput($event, input.id)"
@check="onCheck($event, input.id)"
@repeat-input="onRepeatInput($event, input.id)"
/>
</template>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment