@atlaskit/react-select 3.9.0 → 3.9.1
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 +7 -0
- package/dist/cjs/select.js +3 -2
- package/dist/es2019/select.js +3 -1
- package/dist/esm/select.js +3 -2
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/react-select
|
|
2
2
|
|
|
3
|
+
## 3.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`062b55b337dd8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/062b55b337dd8) -
|
|
8
|
+
aria-autocomplete is omitted when isSearchable is false.
|
|
9
|
+
|
|
3
10
|
## 3.9.0
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
package/dist/cjs/select.js
CHANGED
|
@@ -1342,8 +1342,9 @@ var Select = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
1342
1342
|
var id = inputId || this.getElementId('input');
|
|
1343
1343
|
|
|
1344
1344
|
// aria attributes makes the JSX "noisy", separated for clarity
|
|
1345
|
-
var ariaAttributes = _objectSpread(_objectSpread(_objectSpread({
|
|
1346
|
-
'aria-autocomplete': 'both'
|
|
1345
|
+
var ariaAttributes = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, !this.props.isSearchable && (0, _platformFeatureFlags.fg)('platform_fix_autocomplete_aria_for_select') ? {} : {
|
|
1346
|
+
'aria-autocomplete': 'both'
|
|
1347
|
+
}), {}, {
|
|
1347
1348
|
'aria-errormessage': this.props['aria-errormessage'],
|
|
1348
1349
|
'aria-expanded': menuIsOpen,
|
|
1349
1350
|
// TODO: aria-haspopup is implied as listbox with role="combobox" and was deprecated for aria 1.2, we still might need to keep it for back compat
|
package/dist/es2019/select.js
CHANGED
|
@@ -1345,7 +1345,9 @@ export default class Select extends Component {
|
|
|
1345
1345
|
|
|
1346
1346
|
// aria attributes makes the JSX "noisy", separated for clarity
|
|
1347
1347
|
const ariaAttributes = {
|
|
1348
|
-
'
|
|
1348
|
+
...(!this.props.isSearchable && fg('platform_fix_autocomplete_aria_for_select') ? {} : {
|
|
1349
|
+
'aria-autocomplete': 'both'
|
|
1350
|
+
}),
|
|
1349
1351
|
'aria-errormessage': this.props['aria-errormessage'],
|
|
1350
1352
|
'aria-expanded': menuIsOpen,
|
|
1351
1353
|
// TODO: aria-haspopup is implied as listbox with role="combobox" and was deprecated for aria 1.2, we still might need to keep it for back compat
|
package/dist/esm/select.js
CHANGED
|
@@ -1333,8 +1333,9 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
1333
1333
|
var id = inputId || this.getElementId('input');
|
|
1334
1334
|
|
|
1335
1335
|
// aria attributes makes the JSX "noisy", separated for clarity
|
|
1336
|
-
var ariaAttributes = _objectSpread(_objectSpread(_objectSpread({
|
|
1337
|
-
'aria-autocomplete': 'both'
|
|
1336
|
+
var ariaAttributes = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, !this.props.isSearchable && fg('platform_fix_autocomplete_aria_for_select') ? {} : {
|
|
1337
|
+
'aria-autocomplete': 'both'
|
|
1338
|
+
}), {}, {
|
|
1338
1339
|
'aria-errormessage': this.props['aria-errormessage'],
|
|
1339
1340
|
'aria-expanded': menuIsOpen,
|
|
1340
1341
|
// TODO: aria-haspopup is implied as listbox with role="combobox" and was deprecated for aria 1.2, we still might need to keep it for back compat
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/react-select",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.1",
|
|
4
4
|
"description": "A forked version of react-select to only be used in atlaskit/select",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@atlaskit/ds-lib": "^5.2.0",
|
|
24
24
|
"@atlaskit/icon": "^29.0.0",
|
|
25
|
-
"@atlaskit/layering": "^3.
|
|
25
|
+
"@atlaskit/layering": "^3.4.0",
|
|
26
26
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
27
|
-
"@atlaskit/primitives": "^16.
|
|
27
|
+
"@atlaskit/primitives": "^16.2.0",
|
|
28
28
|
"@atlaskit/spinner": "^19.0.0",
|
|
29
|
-
"@atlaskit/tokens": "^8.
|
|
29
|
+
"@atlaskit/tokens": "^8.1.0",
|
|
30
30
|
"@babel/runtime": "^7.0.0",
|
|
31
31
|
"@compiled/react": "^0.18.6",
|
|
32
32
|
"@floating-ui/dom": "^1.0.1",
|
|
@@ -54,6 +54,9 @@
|
|
|
54
54
|
},
|
|
55
55
|
"platform_do_not_clear_input_for_multiselect": {
|
|
56
56
|
"type": "boolean"
|
|
57
|
+
},
|
|
58
|
+
"platform_fix_autocomplete_aria_for_select": {
|
|
59
|
+
"type": "boolean"
|
|
57
60
|
}
|
|
58
61
|
},
|
|
59
62
|
"techstack": {
|