Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit ffd226d

Browse files
committed
fix(custom): fix change event on custom field
1 parent 9f40b70 commit ffd226d

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ jobs:
1717
node-version: 12
1818
- name: Install dependencies
1919
run: npm ci
20+
- name: Build Library
21+
run: npm run build

src/components/dynamic-input/DynamicInput.vue

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -233,17 +233,7 @@ export default defineComponent({
233233
},
234234
slots.customField({
235235
control: props.control,
236-
onChange: $event => {
237-
const newValue = {};
238-
const value = $event.target.value;
239-
240-
if (props.control) {
241-
props.control.dirty = true;
242-
newValue[props.control.name] = value;
243-
validate();
244-
emit('changed', newValue);
245-
}
246-
},
236+
onChange: valueChange,
247237
onFocus,
248238
onBlur,
249239
}),

0 commit comments

Comments
 (0)