Skip to content

Commit

Permalink
Updated the flatpickr library import.
Browse files Browse the repository at this point in the history
  • Loading branch information
gunjandatta committed Dec 23, 2020
1 parent 7b7ad2f commit 26a7ac4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 26 deletions.
12 changes: 6 additions & 6 deletions dist/gd-sprest-bs.js

Large diffs are not rendered by default.

20 changes: 3 additions & 17 deletions dist/gd-sprest-bs.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gd-sprest-bs",
"version": "6.5.2",
"version": "6.5.3",
"description": "SharePoint JavaScript, TypeScript and Web Components designed using the Bootstrap framework.",
"main": "build/index.js",
"typings": "@types/index.d.ts",
Expand Down
5 changes: 3 additions & 2 deletions src/components/datetime.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as flatpickr from "flatpickr";
import "flatpickr/dist/flatpickr.min.js";
import { Components } from "gd-bs";
import { IDateTime, IDateTimeProps, IFormControlPropsDateTime } from "../../@types/components";
declare var flatpickr;

/**
* Date/Time
Expand Down Expand Up @@ -29,7 +30,7 @@ export const DateTime = (props: IDateTimeProps): IDateTime => {
options.dateFormat = options.dateFormat || ("m-d-Y" + (props.showTime ? " H:i K" : ""));

// Apply the plugin
let datetime = (flatpickr as any)(textbox.el.querySelector("input"), options);
let datetime = flatpickr(textbox.el.querySelector("input"), options);

// Create the element
let el = document.createElement("div");
Expand Down

0 comments on commit 26a7ac4

Please sign in to comment.