react-timepicker
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -7,3 +7,3 @@ { | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "React timepicker in Android KitKat style", | ||
@@ -10,0 +10,0 @@ |
@@ -232,4 +232,5 @@ 'use strict'; | ||
var mode = props.mode; | ||
var size = props.size; | ||
var mode = props.mode; | ||
var size = props.size; | ||
var militaryTime = props.militaryTime; | ||
@@ -253,4 +254,4 @@ var even = state.even; | ||
hand1.setAttribute('x2', mode ? positionsHours[hours === 0 ? 23 : hours - 1][0] : positionsMinutes[minutes][0]); | ||
hand1.setAttribute('y2', mode ? positionsHours[hours === 0 ? 23 : hours - 1][1] : positionsMinutes[minutes][1]); | ||
hand1.setAttribute('x2', mode ? positionsHours[hours === 0 ? militaryTime ? 23 : 11 : hours - 1][0] : positionsMinutes[minutes][0]); | ||
hand1.setAttribute('y2', mode ? positionsHours[hours === 0 ? militaryTime ? 23 : 11 : hours - 1][1] : positionsMinutes[minutes][1]); | ||
@@ -257,0 +258,0 @@ if (previousProps.mode !== mode) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38760
507