tg-core-components 6.1.10 → 6.1.12-autofocus-iphone.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/widgets/CashierAccordion/Withdraw/WithdrawWidget/index.js +1 -2
- package/es/widgets/ResponsibleGamingWidget/Timespan.js +3 -1
- package/lib/widgets/CashierAccordion/Withdraw/WithdrawWidget/index.js +1 -2
- package/lib/widgets/ResponsibleGamingWidget/Timespan.js +3 -1
- package/package.json +2 -2
|
@@ -141,8 +141,7 @@ var WithdrawWidget = function (_PureComponent) {
|
|
|
141
141
|
if (amount === undefined) {
|
|
142
142
|
return errors;
|
|
143
143
|
}
|
|
144
|
-
|
|
145
|
-
if (Number(amount) < parseFloat(selectedMethod.limit.min)) {
|
|
144
|
+
if (amount && Number(amount) < parseFloat(selectedMethod.limit.min)) {
|
|
146
145
|
errors.amount.push(React.createElement(Translate, {
|
|
147
146
|
id: 'error.cashier.amount-below-method-limit',
|
|
148
147
|
defaultMessage: 'Amount is too low.'
|
|
@@ -319,6 +319,8 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
321
|
|
|
322
|
+
var isIphone = typeof window !== 'undefined' && navigator.platform === 'iPhone';
|
|
323
|
+
|
|
322
324
|
return React.createElement(
|
|
323
325
|
Fragment,
|
|
324
326
|
null,
|
|
@@ -352,7 +354,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
352
354
|
setValue(parseInt(value));
|
|
353
355
|
if (value > 0) _onChange(value);
|
|
354
356
|
},
|
|
355
|
-
autoFocus:
|
|
357
|
+
autoFocus: !isIphone,
|
|
356
358
|
min: validationState['limit-remove-blocked'] ? '1' : '0',
|
|
357
359
|
max: validationState['limit-increase-blocked'] ? getByPath(currentLimit, 'Amount') : Infinity
|
|
358
360
|
}),
|
|
@@ -198,8 +198,7 @@ var WithdrawWidget = function (_PureComponent) {
|
|
|
198
198
|
if (amount === undefined) {
|
|
199
199
|
return errors;
|
|
200
200
|
}
|
|
201
|
-
|
|
202
|
-
if (Number(amount) < parseFloat(selectedMethod.limit.min)) {
|
|
201
|
+
if (amount && Number(amount) < parseFloat(selectedMethod.limit.min)) {
|
|
203
202
|
errors.amount.push(_react2.default.createElement(_Translate2.default, {
|
|
204
203
|
id: 'error.cashier.amount-below-method-limit',
|
|
205
204
|
defaultMessage: 'Amount is too low.'
|
|
@@ -350,6 +350,8 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
352
|
|
|
353
|
+
var isIphone = typeof window !== 'undefined' && navigator.platform === 'iPhone';
|
|
354
|
+
|
|
353
355
|
return _react2.default.createElement(
|
|
354
356
|
_react.Fragment,
|
|
355
357
|
null,
|
|
@@ -383,7 +385,7 @@ var DefaultTimespan = function DefaultTimespan(_ref10) {
|
|
|
383
385
|
setValue(parseInt(value));
|
|
384
386
|
if (value > 0) _onChange(value);
|
|
385
387
|
},
|
|
386
|
-
autoFocus:
|
|
388
|
+
autoFocus: !isIphone,
|
|
387
389
|
min: validationState['limit-remove-blocked'] ? '1' : '0',
|
|
388
390
|
max: validationState['limit-increase-blocked'] ? (0, _get2.default)(currentLimit, 'Amount') : Infinity
|
|
389
391
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tg-core-components",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.12-autofocus-iphone.0",
|
|
4
4
|
"description": "tg-core-components",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"webpack": "^3.0.0",
|
|
77
77
|
"webpack-blocks": "^1.0.0"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "c64b0fb2601c31279301fd6352dd4e4660717586"
|
|
80
80
|
}
|