Skip to content

Commit

Permalink
attach: synchronize _focused with inner button #1014
Browse files Browse the repository at this point in the history
  • Loading branch information
hcodes committed Oct 21, 2014
1 parent 7f715e0 commit d66199b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions common.blocks/attach/attach.bemhtml
Expand Up @@ -18,9 +18,9 @@ block('attach')(

var attachMods = this.mods,
buttonMods = button.mods || (button.mods = {});
buttonMods['size'] || (buttonMods['size'] = attachMods['size']);
buttonMods['theme'] || (buttonMods['theme'] = attachMods['theme']);
buttonMods['disabled'] || (buttonMods['disabled'] = attachMods['disabled']);
['size', 'theme', 'disabled', 'focused'].forEach(function(mod) {
buttonMods[mod] || (buttonMods[mod] = attachMods[mod]);
});

return [
button,
Expand Down
6 changes: 3 additions & 3 deletions common.blocks/attach/attach.bh.js
Expand Up @@ -18,9 +18,9 @@ module.exports = function(bh) {

var attachMods = ctx.mods(),
buttonMods = button.mods || (button.mods = {});
buttonMods['size'] || (buttonMods['size'] = attachMods['size']);
buttonMods['theme'] || (buttonMods['theme'] = attachMods['theme']);
buttonMods['disabled'] || (buttonMods['disabled'] = attachMods['disabled']);
['size', 'theme', 'disabled', 'focused'].forEach(function(mod) {
buttonMods[mod] || (buttonMods[mod] = attachMods[mod]);
});

ctx.content([
button,
Expand Down

0 comments on commit d66199b

Please sign in to comment.