Skip to content

Commit

Permalink
fix input type initiation
Browse files Browse the repository at this point in the history
  • Loading branch information
javadbat committed Dec 25, 2024
1 parent c351c9a commit 11a3449
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/jb-date-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class JBDateInputWebComponent extends HTMLElement implements WithValidati
set isAutoValidationDisabled(value: boolean) {
this.#isAutoValidationDisabled = value;
}
#dateFactory: DateFactory = new DateFactory({ inputType: (this.getAttribute("value-type") as InputTypes), valueType: this.getAttribute("value-type") as ValueTypes });
#dateFactory: DateFactory = new DateFactory({ inputType: (this.getAttribute("input-type") as InputTypes), valueType: this.getAttribute("value-type") as ValueTypes });
#showCalendar = false;
inputFormat = 'YYYY/MM/DD';
#inputRegex = /^(?<year>[\u06F0-\u06F90-9,\s]{4})\/(?<month>[\u06F0-\u06F90-9,\s]{2})\/(?<day>[\u06F0-\u06F90-9,\s]{2})$/g;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"jalali web-component",
"jalali web component"
],
"version": "5.4.0",
"version": "5.4.2",
"bugs": "https://github.com/javadbat/jb-date-input/issues",
"license": "MIT",
"files": [
Expand Down

0 comments on commit 11a3449

Please sign in to comment.