diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bfbe508..dd311cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,3 +17,5 @@ jobs: node-version: 12 - name: Install dependencies run: npm ci + - name: Build Library + run: npm run build diff --git a/src/components/dynamic-input/DynamicInput.vue b/src/components/dynamic-input/DynamicInput.vue index 8909304..0cf755d 100644 --- a/src/components/dynamic-input/DynamicInput.vue +++ b/src/components/dynamic-input/DynamicInput.vue @@ -233,17 +233,7 @@ export default defineComponent({ }, slots.customField({ control: props.control, - onChange: $event => { - const newValue = {}; - const value = $event.target.value; - - if (props.control) { - props.control.dirty = true; - newValue[props.control.name] = value; - validate(); - emit('changed', newValue); - } - }, + onChange: valueChange, onFocus, onBlur, }),