Skip to content

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

@ijakparov

Description

@ijakparov

Если в блоке 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;
        }
    }));
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions