sprintify-ui 0.0.166 → 0.0.167
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/dist/sprintify-ui.es.js +972 -978
- package/package.json +1 -1
- package/src/components/BaseInput.vue +4 -9
package/package.json
CHANGED
|
@@ -200,8 +200,10 @@ const bindings = computed<any>(() => {
|
|
|
200
200
|
placeholder: props.placeholder,
|
|
201
201
|
required: requiredInternal.value,
|
|
202
202
|
|
|
203
|
-
onKeydown: {
|
|
204
|
-
|
|
203
|
+
onKeydown(event: KeyboardEvent) {
|
|
204
|
+
if (event.code == 'Enter' && props.preventSubmit) {
|
|
205
|
+
event.preventDefault();
|
|
206
|
+
}
|
|
205
207
|
},
|
|
206
208
|
onFocus: (e: Event) => {
|
|
207
209
|
emit('focus', e);
|
|
@@ -250,13 +252,6 @@ function update(event: any | null) {
|
|
|
250
252
|
return emitUpdate(get(event, 'target.value', ''));
|
|
251
253
|
}
|
|
252
254
|
|
|
253
|
-
function onEnter(e: Event) {
|
|
254
|
-
if (props.preventSubmit) {
|
|
255
|
-
e.preventDefault();
|
|
256
|
-
return;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
|
|
260
255
|
const borderColor = computed(() => {
|
|
261
256
|
return hasErrorInternal.value ? 'border-red-500' : 'border-slate-300';
|
|
262
257
|
});
|