Skip to content

Commit

Permalink
add 2.4.5 version
Browse files Browse the repository at this point in the history
  • Loading branch information
pglejzer committed Apr 2, 2022
1 parent c67cefe commit 5584f99
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 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.5] - 2022-04-02

### Fix

- fixed unnecessary change code to `disable Time`

---

## [2.4.4] - 2022-04-02

### Fix
Expand Down
4 changes: 2 additions & 2 deletions app/src/timepicker/components/ClockFace/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ class ClockFace {

if (spanMinutes && startMinutes && endMinutes) {
if (activeMode === 'AM') {
if (startMinutes.length === 0 && endMinutes.length === 0 && endMinutes[0] === '00') {
if (endMinutes[0] === '00' && endMinutes.length === 1 && startMinutes.length === 0) {
if (Number(actualHour) >= Number(amHours[0])) {
this._addClasses(spanMinutes);
}
Expand All @@ -192,7 +192,7 @@ class ClockFace {
}
}

if (endMinutes[0] === '00' && endMinutes.length === 0 && startMinutes.length > 0) {
if (endMinutes[0] === '00' && endMinutes.length === 1 && startMinutes.length > 0) {
if (Number(removedAmHour) === Number(actualHour)) {
this._addClassesWithIncludes(spanMinutes, startMinutes);
} else if (Number(actualHour) > Number(removedAmHour)) {
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.4",
"version": "2.4.5",
"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 5584f99

Please sign in to comment.