Skip to content

Commit

Permalink
making sure we dont save invalid forms
Browse files Browse the repository at this point in the history
  • Loading branch information
jvigliotta committed Jan 6, 2025
1 parent 3ecb9d4 commit f68fdb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/forms/components/FormProperties.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default {
this.$emit('on-save');
},
handleKeyDown({ key }) {
if (key === 'Enter') {
if (key === 'Enter' && !this.isInvalid) {
this.onSave();
} else if (key === 'Escape') {
this.onCancel();
Expand Down

0 comments on commit f68fdb0

Please sign in to comment.