Skip to content

this.fp should be available soonerΒ #65

@ClayShentrup

Description

@ClayShentrup

Suppose you want to do something like:

new Cleave(
  this.fp.altInput,
  {
    date: true,
    datePattern: ["m", "d", "Y"],
  }
);

If you put this in connect() then it'll re-run every time the element is re-added to the DOM, which seems to be erroneous, as event listeners persist across removal and re-adding to the DOM. So you just want to do this once, e.g. in initialize or onReady.

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