Skip to content

Commit

Permalink
fix issue that custom buttons can't be mapped attributes from selector (
Browse files Browse the repository at this point in the history
#134)

Co-authored-by: trung.pham <[email protected]>
  • Loading branch information
Phạm Trí Trung and trung.pham authored Dec 29, 2020
1 parent 4c21767 commit 22f66d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/confirmation.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ class Confirmation extends Popover {
.addClass(BTN_CLASS_BASE)
.addClass(button.class || `${BTN_CLASS_DEFAULT} btn-secondary`)
.html(button.label || '')
.attr(button.attr || {});
.attr(button.attr || (button.cancel ? {} : self.config._attributes));

if (button.iconClass || button.iconContent) {
btn.prepend($('<i></i>')
Expand Down

0 comments on commit 22f66d0

Please sign in to comment.