@atlaskit/form 15.0.1 → 15.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @atlaskit/form
2
2
 
3
+ ## 15.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`8b640226a78b9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8b640226a78b9) -
8
+ [ux] Improved focusing behavior on submit for fields with errors
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 15.0.1
4
15
 
5
16
  ### Patch Changes
package/dist/cjs/form.js CHANGED
@@ -82,7 +82,7 @@ var FormBase = function FormBase(props, ref) {
82
82
  });
83
83
  (0, _finalFormFocus.default)(function () {
84
84
  return formRef.current ? Array.from(formRef.current.querySelectorAll('input')) : [];
85
- }, (0, _platformFeatureFlags.fg)('platform-form-field-error-focus') ? _utils.getFirstErrorField : undefined)(finalForm);
85
+ }, _utils.getFirstErrorField)(finalForm);
86
86
  return finalForm;
87
87
  }),
88
88
  _useState2 = (0, _slicedToArray2.default)(_useState, 1),
@@ -62,7 +62,7 @@ const FormBase = (props, ref) => {
62
62
  }
63
63
  }
64
64
  });
65
- createDecorator(() => formRef.current ? Array.from(formRef.current.querySelectorAll('input')) : [], fg('platform-form-field-error-focus') ? getFirstErrorField : undefined)(finalForm);
65
+ createDecorator(() => formRef.current ? Array.from(formRef.current.querySelectorAll('input')) : [], getFirstErrorField)(finalForm);
66
66
  return finalForm;
67
67
  });
68
68
  const [state, setState] = useState({
package/dist/esm/form.js CHANGED
@@ -73,7 +73,7 @@ var FormBase = function FormBase(props, ref) {
73
73
  });
74
74
  createDecorator(function () {
75
75
  return formRef.current ? Array.from(formRef.current.querySelectorAll('input')) : [];
76
- }, fg('platform-form-field-error-focus') ? getFirstErrorField : undefined)(finalForm);
76
+ }, getFirstErrorField)(finalForm);
77
77
  return finalForm;
78
78
  }),
79
79
  _useState2 = _slicedToArray(_useState, 1),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/form",
3
- "version": "15.0.1",
3
+ "version": "15.1.0",
4
4
  "description": "A form allows people to input information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -28,7 +28,7 @@
28
28
  "@atlaskit/css": "^0.18.0",
29
29
  "@atlaskit/ds-lib": "^5.3.0",
30
30
  "@atlaskit/heading": "^5.2.0",
31
- "@atlaskit/icon": "^29.2.0",
31
+ "@atlaskit/icon": "^29.3.0",
32
32
  "@atlaskit/platform-feature-flags": "^1.1.0",
33
33
  "@atlaskit/primitives": "^16.4.0",
34
34
  "@atlaskit/tokens": "^8.6.0",
@@ -113,9 +113,6 @@
113
113
  "platform_dst_form_screenreader_message_fix": {
114
114
  "type": "boolean"
115
115
  },
116
- "platform-form-field-error-focus": {
117
- "type": "boolean"
118
- },
119
116
  "platform-form-reset-field-state": {
120
117
  "type": "boolean"
121
118
  },