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.
Suppose you want to do something like:
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.