@atlaskit/react-select 3.14.1 → 3.14.2

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,13 @@
1
1
  # @atlaskit/react-select
2
2
 
3
+ ## 3.14.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`fd726869d6207`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fd726869d6207) -
8
+ Fix incorrect aria-readonly attribute when isSearchable={false}. Behind feature gate
9
+ 'select_issearchable_aria-readonly_fix'.
10
+
3
11
  ## 3.14.1
4
12
 
5
13
  ### Patch Changes
@@ -1359,7 +1359,7 @@ var Select = exports.default = /*#__PURE__*/function (_Component) {
1359
1359
  'aria-activedescendant': this.props['UNSAFE_is_experimental_generic'] ? undefined : this.state.focusedOptionId || this.state.focusedValueId || undefined
1360
1360
  }, menuIsOpen && {
1361
1361
  'aria-controls': this.getElementId('listbox')
1362
- }), !isSearchable && {
1362
+ }), !isSearchable && !(0, _platformFeatureFlags.fg)('select_issearchable_aria-readonly_fix') && {
1363
1363
  'aria-readonly': true
1364
1364
  }), this.calculateDescription());
1365
1365
  if (!isSearchable) {
@@ -1363,8 +1363,7 @@ export default class Select extends Component {
1363
1363
  ...(menuIsOpen && {
1364
1364
  'aria-controls': this.getElementId('listbox')
1365
1365
  }),
1366
- // TODO: Might need to remove this
1367
- ...(!isSearchable && {
1366
+ ...(!isSearchable && !fg('select_issearchable_aria-readonly_fix') && {
1368
1367
  'aria-readonly': true
1369
1368
  }),
1370
1369
  ...this.calculateDescription()
@@ -1350,7 +1350,7 @@ var Select = /*#__PURE__*/function (_Component) {
1350
1350
  'aria-activedescendant': this.props['UNSAFE_is_experimental_generic'] ? undefined : this.state.focusedOptionId || this.state.focusedValueId || undefined
1351
1351
  }, menuIsOpen && {
1352
1352
  'aria-controls': this.getElementId('listbox')
1353
- }), !isSearchable && {
1353
+ }), !isSearchable && !fg('select_issearchable_aria-readonly_fix') && {
1354
1354
  'aria-readonly': true
1355
1355
  }), this.calculateDescription());
1356
1356
  if (!isSearchable) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-select",
3
- "version": "3.14.1",
3
+ "version": "3.14.2",
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",
@@ -21,7 +21,7 @@
21
21
  "atlaskit:src": "src/index.tsx",
22
22
  "dependencies": {
23
23
  "@atlaskit/ds-lib": "^6.0.0",
24
- "@atlaskit/icon": "^32.0.0",
24
+ "@atlaskit/icon": "^32.1.0",
25
25
  "@atlaskit/layering": "^3.6.0",
26
26
  "@atlaskit/platform-feature-flags": "^1.1.0",
27
27
  "@atlaskit/primitives": "^18.0.0",
@@ -60,6 +60,9 @@
60
60
  "platform_fix_autocomplete_aria_for_select": {
61
61
  "type": "boolean"
62
62
  },
63
+ "select_issearchable_aria-readonly_fix": {
64
+ "type": "boolean"
65
+ },
63
66
  "platform-dst-shape-theme-default": {
64
67
  "type": "boolean"
65
68
  },