bem / bem/bem-components

Неожиданное поведение метода setVal при доопределении input

Open
#2,120 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
330
Forks
88
PR merge metrics
No merged PRs in 30d

Description

Если в блоке input из bem-components переопределить метод setVal, то новый метод выполняется сам по себе без остановки при инициализации блока.

```js
modules.define('input', [ 'i-bem-dom' ], function (provide, bemDom, Input) {
provide(bemDom.declBlock(Input, {
setVal: function (val, data) {
console.log(999);
return this;
}
}));
});
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.