Skip to content

suggest: Move hack about refocusing to mixin #12

Description

@narqo

Those hacks are copy&pasted to every composite block with input and popup. One possible solution here could be a silly mixin, which implemented common functionality.

BemDom.declMix('control_has-popup', {
  // protected methods to work with block refocusing
});

BemDom.decl({ block : 'suggest', baseMix : ['control_has-popup'], {
  // I know I'am ugly, but I glow in the dark
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions