mirror of
https://github.com/nasa/openmct.git
synced 2025-03-21 03:25:44 +00:00
making sure we dont save invalid forms
This commit is contained in:
parent
3ecb9d4355
commit
f68fdb03bc
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user