Skip to content

Commit

Permalink
Fix Colour and Text Size fields not triggering an updated value call …
Browse files Browse the repository at this point in the history
…when changing their value
  • Loading branch information
engram-design committed Feb 7, 2024
1 parent 604a0ca commit 80fce16
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/resources/dist/js/buttonbox.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/resources/dist/js/buttonbox.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/resources/src/js/buttonbox.js
Expand Up @@ -98,7 +98,9 @@ Craft.ButtonBoxFancyOptions = Garnish.Base.extend({
var $option = $(option),
newVal = $option.data('buttonbox-value');

// Update the jQuery value and attribute so that Craft detects a change
this.$select.val(newVal);
this.$select.attr('value', newVal);

this._updateField();

Expand Down

0 comments on commit 80fce16

Please sign in to comment.