@atlaskit/datetime-picker 17.5.5 → 17.5.6
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/datetime-picker
|
|
2
2
|
|
|
3
|
+
## 17.5.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d14fcb02e17e7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d14fcb02e17e7) -
|
|
8
|
+
Fix bad falsy check in functional datetime picker behind feature flag.
|
|
9
|
+
|
|
3
10
|
## 17.5.5
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -131,7 +131,7 @@ var DateTimePicker = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, _ref)
|
|
|
131
131
|
zoneValue = _useState0[0],
|
|
132
132
|
setZoneValue = _useState0[1];
|
|
133
133
|
(0, _react.useEffect)(function () {
|
|
134
|
-
if (providedValue) {
|
|
134
|
+
if (providedValue !== undefined) {
|
|
135
135
|
setValue(providedValue);
|
|
136
136
|
}
|
|
137
137
|
}, [providedValue]);
|
|
@@ -89,7 +89,7 @@ const DateTimePicker = /*#__PURE__*/forwardRef(({
|
|
|
89
89
|
const [value, setValue] = useState(defaultValue || '');
|
|
90
90
|
const [zoneValue, setZoneValue] = useState('');
|
|
91
91
|
useEffect(() => {
|
|
92
|
-
if (providedValue) {
|
|
92
|
+
if (providedValue !== undefined) {
|
|
93
93
|
setValue(providedValue);
|
|
94
94
|
}
|
|
95
95
|
}, [providedValue]);
|
|
@@ -124,7 +124,7 @@ var DateTimePicker = /*#__PURE__*/forwardRef(function (_ref2, _ref) {
|
|
|
124
124
|
zoneValue = _useState0[0],
|
|
125
125
|
setZoneValue = _useState0[1];
|
|
126
126
|
useEffect(function () {
|
|
127
|
-
if (providedValue) {
|
|
127
|
+
if (providedValue !== undefined) {
|
|
128
128
|
setValue(providedValue);
|
|
129
129
|
}
|
|
130
130
|
}, [providedValue]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/datetime-picker",
|
|
3
|
-
"version": "17.5.
|
|
3
|
+
"version": "17.5.6",
|
|
4
4
|
"description": "A date time picker allows the user to select an associated date and time.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@atlaskit/heading": "^5.3.0",
|
|
64
64
|
"@atlaskit/link": "^3.3.0",
|
|
65
65
|
"@atlaskit/modal-dialog": "^14.11.0",
|
|
66
|
-
"@atlaskit/popup": "^4.
|
|
66
|
+
"@atlaskit/popup": "^4.14.0",
|
|
67
67
|
"@atlaskit/range": "^10.0.0",
|
|
68
68
|
"@atlaskit/section-message": "^8.12.0",
|
|
69
69
|
"@atlaskit/textfield": "^8.2.0",
|