Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common.blocks/form-field/form-field.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ provide(bemDom.declBlock(this.name, /** @lends form-field.prototype */{
},

'disabled' : function(modName, modVal) {
this.findChildBlock(Label).setMod(modName, modVal);
this.findChildBlock(Label) && this.findChildBlock(Label).setMod(modName, modVal);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meybe

var label = this.findChildBlock(Label);
label && label.setMod(modName, modVal);

?

this.getControl().setMod(modName, modVal);
}
},
Expand Down
2 changes: 1 addition & 1 deletion common.blocks/radio/radio.bemhtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ block('radio')(
var ctx = this.ctx;

ctx.name || (ctx.name = this._form_field.name);
this.mods.disabled = this._form_field.mods.disabled;
this.mods.disabled = this._form_field.mods.disabled || this.mods.disabled;

return applyNext();
})
Expand Down