Open bu1ka opened 9 years ago
Block select with custom bemjson as an options (modifier mode is set to radio) in _updateButton method will use domElem.text() in menu-item's method getText and will return a sting instead of that bemjson.
select
_updateButton
domElem.text()
menu-item
getText
ex:
options: [ {val: 1, text: {block: 'form', elem: 'price', mods: {type: 'rub'}, content: 'Р'}}, {val: 2, text: '$'} ]
when first option will be checked:
select._updateButton -> select._getCheckedItems() -> menu-item.getText() => 'P' instead of '<div class="form__price form__price_type_rub">P</div>
select._updateButton -> select._getCheckedItems() -> menu-item.getText() => 'P'
'<div class="form__price form__price_type_rub">P</div>
It looks like the time for #529 has come
Block
select
with custom bemjson as an options (modifier mode is set to radio) in_updateButton
method will usedomElem.text()
inmenu-item
's methodgetText
and will return a sting instead of that bemjson.ex:
when first option will be checked:
select._updateButton -> select._getCheckedItems() -> menu-item.getText() => 'P'
instead of'<div class="form__price form__price_type_rub">P</div>