Skip to content

Commit

Permalink
Merge branch 'master' into fix-bug-with-time-limits
Browse files Browse the repository at this point in the history
  • Loading branch information
chmln committed Jul 12, 2021
2 parents ec72808 + 82f80cc commit aed2668
Show file tree
Hide file tree
Showing 9 changed files with 477 additions and 531 deletions.
4 changes: 4 additions & 0 deletions __tests__/src/index.spec.ts
Expand Up @@ -513,6 +513,10 @@ describe("flatpickr", () => {

fp.set("mode", "range");
expect(fp.config.mode).toEqual("range");

const elem = document.createElement("div");
fp.set("positionElement", elem);
expect(fp._positionElement).toEqual(elem);
});

it("set() minDate/maxDate updates current view", () => {
Expand Down
4 changes: 2 additions & 2 deletions build.ts
Expand Up @@ -219,10 +219,10 @@ async function start() {
}
const watcher = rollup.watch([getConfig({ dev: true })]);

function exit() {
const exit = function () {
watcher.close();
watchers.forEach((w) => w.close());
}
};

//catches ctrl+c event
process.on("SIGINT", exit);
Expand Down

0 comments on commit aed2668

Please sign in to comment.