Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ijakparov opened this issue Feb 29, 2020 · 0 comments

Comments

@ijakparov
Copy link

ijakparov commented Feb 29, 2020

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

modules.define('input', [ 'i-bem-dom' ], function (provide, bemDom, Input) {
    provide(bemDom.declBlock(Input, {
        setVal: function (val, data) {
            console.log(999);
            return this;
        }
    }));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant