@workday/canvas-kit-react 9.0.3 → 9.0.5

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.
@@ -90,13 +90,13 @@ class FormField extends React.Component {
90
90
  }
91
91
  if (typeof this.props.error !== 'undefined') {
92
92
  props.error = this.props.error;
93
- if (this.props.hintId) {
94
- props['aria-describedby'] = this.props.hintId;
95
- }
96
93
  if (this.props.error === common_1.ErrorType.Error) {
97
94
  props['aria-invalid'] = true;
98
95
  }
99
96
  }
97
+ if (this.props.hintId) {
98
+ props['aria-describedby'] = this.props.hintId;
99
+ }
100
100
  if (this.props.required) {
101
101
  props.required = true;
102
102
  }
@@ -68,13 +68,13 @@ export class FormField extends React.Component {
68
68
  }
69
69
  if (typeof this.props.error !== 'undefined') {
70
70
  props.error = this.props.error;
71
- if (this.props.hintId) {
72
- props['aria-describedby'] = this.props.hintId;
73
- }
74
71
  if (this.props.error === ErrorType.Error) {
75
72
  props['aria-invalid'] = true;
76
73
  }
77
74
  }
75
+ if (this.props.hintId) {
76
+ props['aria-describedby'] = this.props.hintId;
77
+ }
78
78
  if (this.props.required) {
79
79
  props.required = true;
80
80
  }
@@ -157,15 +157,15 @@ export class FormField extends React.Component<React.PropsWithChildren<FormField
157
157
  if (typeof this.props.error !== 'undefined') {
158
158
  props.error = this.props.error;
159
159
 
160
- if (this.props.hintId) {
161
- props['aria-describedby'] = this.props.hintId;
162
- }
163
-
164
160
  if (this.props.error === ErrorType.Error) {
165
161
  props['aria-invalid'] = true;
166
162
  }
167
163
  }
168
164
 
165
+ if (this.props.hintId) {
166
+ props['aria-describedby'] = this.props.hintId;
167
+ }
168
+
169
169
  if (this.props.required) {
170
170
  props.required = true;
171
171
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-react",
3
- "version": "9.0.3",
3
+ "version": "9.0.5",
4
4
  "description": "The parent module that contains all Workday Canvas Kit React components",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -49,7 +49,7 @@
49
49
  "@emotion/styled": "^11.6.0",
50
50
  "@popperjs/core": "^2.5.4",
51
51
  "@workday/canvas-colors-web": "^2.0.0",
52
- "@workday/canvas-kit-popup-stack": "^9.0.3",
52
+ "@workday/canvas-kit-popup-stack": "^9.0.5",
53
53
  "@workday/canvas-system-icons-web": "^3.0.0",
54
54
  "@workday/design-assets-types": "^0.2.8",
55
55
  "chroma-js": "^2.1.0",
@@ -66,5 +66,5 @@
66
66
  "@workday/canvas-accent-icons-web": "^3.0.0",
67
67
  "@workday/canvas-applet-icons-web": "^2.0.0"
68
68
  },
69
- "gitHead": "6be5a036b55189709a7c89e8317bf70e4569d7b0"
69
+ "gitHead": "d16d097c799705aeb34bf970ce52d9be167f2e18"
70
70
  }