Skip to content

Commit

Permalink
button.Split: keep the original button ui selectors for the first chi…
Browse files Browse the repository at this point in the history
…ld button #4501
  • Loading branch information
tobiu committed Jun 9, 2023
1 parent 177f079 commit c916ad6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/button/Split.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,18 @@ class Split extends Button {
* @param {String|null} oldValue
*/
afterSetUi(value, oldValue) {
let triggerButton = this.triggerButton;
let me = this,
ntype = me.ntype,
triggerButton = me.triggerButton;

if (triggerButton) {
triggerButton.ui = value;
}

// we do want to assign a button based ui to the vdomRoot
me.ntype = 'button';
super.afterSetUi(value, oldValue);
me.ntype = ntype;
}

/**
Expand Down

0 comments on commit c916ad6

Please sign in to comment.