Skip to content

Commit fce360d

Browse files
committed
fix: arrow key boundry bug
1 parent 888fd53 commit fce360d

File tree

5 files changed

+480
-450
lines changed

5 files changed

+480
-450
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#changelog
2+
## [3.13.1] - 2024-2-19
3+
### fixed
4+
- fix value change on arrow key. move it from base on `valueType` to base on `inputType` due to month and day boundary validation
25
## [3.13.0] - 2024-2-19
36
### new features
47
- add `setMonthList` method to easily customize month names.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ const validationList = [
141141
},
142142
{
143143
validator:(inputedText, valueObject, valueText)=>{
144-
//you can use raw inputed text or formatted text in expected value in argumants
144+
//you can use raw inputted text or formatted text in expected value in arguments
145145
//you have access to both jalali and gregorian date object here
146-
// rememmber valueObject and valueText are both empty and null when date is incomplete
146+
// remember valueObject and valueText are both empty and null when date is incomplete
147147
return valueObject.jalali.day == 15;
148148
},
149149
message:'باید تاریخ حتما 15 ماه انتخاب شود'
@@ -168,7 +168,7 @@ const validationObj = dom.triggerInputValidation(showError)
168168
//when default property are defined best time for impl your config like min and max date
169169
document.querySelector('jb-date-input').addEventListener('init',this.onCalendarElementInitiated);
170170

171-
//when calendar init all property and function and dom created and bind successully
171+
//when calendar init all property and function and dom created and bind successfully
172172
document.querySelector('jb-date-input').addEventListener('load',this.onCalendarElementLoaded);
173173
document.querySelector('jb-date-input').addEventListener('change',(e)=>{
174174
//value in string
@@ -285,7 +285,7 @@ body{
285285

286286
| css variable name | description |
287287
| ------------- | ------------- |
288-
| --jb-date-input-margin | web-component margin default is `0 0` |
288+
| --jb-date-input-margin | web-component margin default is `0 0` |
289289
| --jb-date-input-border-radius | web-component border-radius default is `16px` |
290290
| --jb-date-input-border-color | border color of select in normal mode |
291291
| --jb-date-input-border-color-focus | border color when user focus on input |

0 commit comments

Comments
 (0)