Skip to content

Commit

Permalink
add version 2.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
pglejzer committed Apr 2, 2022
1 parent 06876cc commit c67cefe
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

---

## [2.4.4] - 2022-04-02

### Fix

- fixed problem with `focusTrap` with React about eval error

---

## [2.4.3] - 2022-04-02

### Fix
Expand Down
4 changes: 1 addition & 3 deletions app/src/timepicker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1718,18 +1718,16 @@ export default class TimepickerUI {

this.wrapper.focus();

this.wrapper.addEventListener('keydown', ({ key, shiftKey, target: t, preventDefault }) => {
this.wrapper.addEventListener('keydown', ({ key, shiftKey, target: t }) => {
const target = t as HTMLDivElement;

if (key === 'Tab') {
if (shiftKey) {
if (document.activeElement === firstFocusableEl) {
lastFocusableEl.focus();
preventDefault();
}
} else if (document.activeElement === lastFocusableEl) {
firstFocusableEl.focus();
preventDefault();
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/timepicker-ui.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/timepicker-ui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/timepicker-ui.umd.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": "timepicker-ui",
"version": "2.4.3",
"version": "2.4.4",
"description": "timepicker-ui is an easy library with timepicker. Created with TypeScript based on Material Design from Google.",
"main": "./dist/timepicker-ui.js",
"module": "./dist/timepicker-ui.esm.js",
Expand Down

0 comments on commit c67cefe

Please sign in to comment.