Skip to content

Commit 5596475

Browse files
committed
MC-3473: Create Widget on Frontend and Apply Width
- Fix docblock type to match JQuery collection of elements passed - Fix logic gate to expect jquery to coerce the type to a number
1 parent 8e60c10 commit 5596475

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/PageBuilder/view/frontend/web/js/content-type/buttons/appearance/inline

1 file changed

+2
-2
lines changed

app/code/Magento/PageBuilder/view/frontend/web/js/content-type/buttons/appearance/inline/widget.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ define([
1010
/**
1111
* Equalize the width of a list of button-item components
1212
*
13-
* @param {JQuerySerializeArrayElement} buttonList
13+
* @param {JQuery} buttonList
1414
*/
1515
var equalizeButtonWidth = function (buttonList) {
1616
var buttonMinWidth = 0;
@@ -28,7 +28,7 @@ define([
2828
return function (config, element) {
2929
var $element = $(element);
3030

31-
if ($element.data('sameWidth') === '1') {
31+
if ($element.data('sameWidth')) {
3232
equalizeButtonWidth($element.find('[data-element="link"]'));
3333
}
3434
};

0 commit comments

Comments
 (0)