@planningcenter/doxy-web
Advanced tools
Comparing version 2.2.1-rc.0 to 2.2.1-rc.1
@@ -295,3 +295,6 @@ import React, { useRef, useEffect, useState, forwardRef } from 'react'; | ||
const isTouchDevice = window.matchMedia("(pointer:coarse)").matches || window.matchMedia("(any-pointer:coarse)").matches; | ||
const detectDeviceType = () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? "mobile" : "desktop"; | ||
const isMobileBroswer = detectDeviceType() === "mobile"; | ||
const isDesktopBrowser = detectDeviceType() === "desktop"; | ||
const NumberSpinner = _ref => { | ||
@@ -326,3 +329,3 @@ let { | ||
"sm-number-spinner": size === "sm", | ||
focused: !isTouchDevice && focus | ||
focused: isDesktopBrowser && focus | ||
}), | ||
@@ -350,3 +353,3 @@ "data-testid": "numberSpinner", | ||
onWheel: e => e.target.blur(), | ||
readOnly: isTouchDevice, | ||
readOnly: isMobileBroswer, | ||
step: "1", | ||
@@ -353,0 +356,0 @@ type: "number", |
@@ -304,3 +304,6 @@ 'use strict'; | ||
const isTouchDevice = window.matchMedia("(pointer:coarse)").matches || window.matchMedia("(any-pointer:coarse)").matches; | ||
const detectDeviceType = () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? "mobile" : "desktop"; | ||
const isMobileBroswer = detectDeviceType() === "mobile"; | ||
const isDesktopBrowser = detectDeviceType() === "desktop"; | ||
const NumberSpinner = _ref => { | ||
@@ -335,3 +338,3 @@ let { | ||
"sm-number-spinner": size === "sm", | ||
focused: !isTouchDevice && focus | ||
focused: isDesktopBrowser && focus | ||
}), | ||
@@ -359,3 +362,3 @@ "data-testid": "numberSpinner", | ||
onWheel: e => e.target.blur(), | ||
readOnly: isTouchDevice, | ||
readOnly: isMobileBroswer, | ||
step: "1", | ||
@@ -362,0 +365,0 @@ type: "number", |
{ | ||
"name": "@planningcenter/doxy-web", | ||
"version": "2.2.1-rc.0", | ||
"version": "2.2.1-rc.1", | ||
"description": "Doxy for Church Center Web", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
593480
11713