File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 80
80
</div >
81
81
<div class =" flex justify-end" >
82
82
<SecondaryButton @click =" close" :disabled =" loading" >Cancel</SecondaryButton >
83
- <PrimaryButton class =" ml-4" :disabled =" allowSubmit ? !allowSubmit(model) : false" >{{ submitLabel }}</PrimaryButton >
83
+ <PrimaryButton class =" ml-4" :disabled =" loading || ( allowSubmit ? !allowSubmit(model) : false) " >{{ submitLabel }}</PrimaryButton >
84
84
<slot name =" rightbuttons" :instance =" getCurrentInstance()?.exposed" :model =" model" ></slot >
85
85
</div >
86
86
</div >
@@ -279,4 +279,4 @@ function close() {
279
279
const globalKeyHandler = (e : KeyboardEvent ) => { if (e .key === ' Escape' ) close () }
280
280
onMounted (() => window .addEventListener (' keydown' , globalKeyHandler ))
281
281
onUnmounted (() => window .removeEventListener (' keydown' , globalKeyHandler ))
282
- </script >
282
+ </script >
You can’t perform that action at this time.
0 commit comments