fix: set primary action after clearing previous action (#17454)
This commit is contained in:
parent
7a59fc7ecf
commit
ff734532aa
1 changed files with 2 additions and 1 deletions
|
|
@ -145,7 +145,8 @@ frappe.ui.Dialog = class Dialog extends frappe.ui.FieldGroup {
|
|||
return this.get_primary_btn()
|
||||
.removeClass("hide")
|
||||
.html(label)
|
||||
.click(function() {
|
||||
.off('click')
|
||||
.on('click', function() {
|
||||
me.primary_action_fulfilled = true;
|
||||
// get values and send it
|
||||
// as first parameter to click callback
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue