Skip to content

Commit

Permalink
suggest: add popupMix to ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
d3m1d0v authored and tadatuta committed Dec 6, 2019
1 parent fd9915a commit dcadd0e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions blocks/suggest/suggest.bemhtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ block('suggest')(
target : 'anchor',
autoclosable : true
},
mix : this._suggest.popupMix,
// FIXME: https://github.com/bem/bem-components/issues/1745
attrs : { 'aria-hidden' : 'true' },
directions : ['bottom-left', 'bottom-right', 'top-left', 'top-right'],
Expand Down
1 change: 1 addition & 0 deletions blocks/suggest/suggest.bh.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = function(bh) {
target : 'anchor',
autoclosable : true
},
mix : json.popupMix,
directions : ['bottom-left', 'bottom-right', 'top-left', 'top-right'],
content : {
block : json.block,
Expand Down
1 change: 1 addition & 0 deletions blocks/suggest/suggest.tmpl-specs/10-simple.bemjson.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
size : 'l',
'has-dataprovider' : true
},
popupMix : { block : 'suggest-mix' },
name : 'timezone',
dataprovider : {
data : ['one', 'two', 'three']
Expand Down
2 changes: 1 addition & 1 deletion blocks/suggest/suggest.tmpl-specs/10-simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<input autocomplete="off" class="input__control" name="timezone"/>
</span>
</span>
<div aria-hidden="true" class="i-bem popup popup_autoclosable popup_target_anchor popup_theme_islands" data-bem="{&quot;popup&quot;:{&quot;directions&quot;:[&quot;bottom-left&quot;,&quot;bottom-right&quot;,&quot;top-left&quot;,&quot;top-right&quot;]}}">
<div aria-hidden="true" class="i-bem popup popup_autoclosable popup_target_anchor popup_theme_islands suggest-mix" data-bem="{&quot;popup&quot;:{&quot;directions&quot;:[&quot;bottom-left&quot;,&quot;bottom-right&quot;,&quot;top-left&quot;,&quot;top-right&quot;]}}">
<div class="i-bem menu menu__control menu_size_l menu_theme_islands sg-datalist" data-bem="{&quot;menu&quot;:{},&quot;sg-datalist&quot;:{}}" role="menu" tabindex="0"></div>
</div>
</div>

0 comments on commit dcadd0e

Please sign in to comment.