We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5d6abe4 + dfdf281 commit 0c9b5f8Copy full SHA for 0c9b5f8
app/code/Magento/Ui/view/base/web/js/lib/knockout/bindings/optgroup.js
@@ -297,11 +297,16 @@ define([
297
ko.utils.arrayForEach(options, function (option) {
298
var value = applyToObject(option, optionsValue, option),
299
label = applyToObject(option, optionsText, value) || '',
300
+ disabled = applyToObject(option, 'disabled', false) || false,
301
obj = {},
302
space = '\u2007\u2007\u2007';
303
304
obj[optionTitle] = applyToObject(option, optionsText + 'title', value);
305
306
+ if (disabled) {
307
+ obj.disabled = disabled;
308
+ }
309
+
310
label = label.replace(nbspRe, '').trim();
311
312
if (Array.isArray(value)) {
0 commit comments