@rc-component/select 1.3.4 → 1.3.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.
@@ -174,9 +174,9 @@ const Input = /*#__PURE__*/React.forwardRef((props, ref) => {
174
174
  role: role || 'combobox',
175
175
  'aria-expanded': open || false,
176
176
  'aria-haspopup': 'listbox',
177
- 'aria-owns': `${id}_list`,
177
+ 'aria-owns': open ? `${id}_list` : undefined,
178
178
  'aria-autocomplete': 'list',
179
- 'aria-controls': `${id}_list`,
179
+ 'aria-controls': open ? `${id}_list` : undefined,
180
180
  'aria-activedescendant': open ? activeDescendantId : undefined
181
181
  };
182
182
 
@@ -183,9 +183,9 @@ const Input = /*#__PURE__*/React.forwardRef((props, ref) => {
183
183
  role: role || 'combobox',
184
184
  'aria-expanded': open || false,
185
185
  'aria-haspopup': 'listbox',
186
- 'aria-owns': `${id}_list`,
186
+ 'aria-owns': open ? `${id}_list` : undefined,
187
187
  'aria-autocomplete': 'list',
188
- 'aria-controls': `${id}_list`,
188
+ 'aria-controls': open ? `${id}_list` : undefined,
189
189
  'aria-activedescendant': open ? activeDescendantId : undefined
190
190
  };
191
191
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rc-component/select",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "React Select",
5
5
  "engines": {
6
6
  "node": ">=8.x"