Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
csandman authored Oct 2, 2023
2 parents 554b577 + b53e647 commit 5908f99
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 3 deletions.
1 change: 1 addition & 0 deletions cypress/fixtures/selectors.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"indicatorClear": ".react-select__clear-indicator",
"indicatorDropdown": ".react-select__dropdown-indicator",
"menu": ".react-select__menu",
"control": ".react-select__control",
"menuOption": ".react-select__option",
"noOptionsValue": ".react-select__menu-notice--no-options",
"placeholder": ".react-select__placeholder",
Expand Down
6 changes: 5 additions & 1 deletion cypress/integration/single-select.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ describe('Single Select', () => {
.click({ force: true })
.find('input')
.should('exist')
.should('be.disabled');
.should('be.disabled')
// control should have aria-disabled
.get(selector.singleBasicSelect)
.find(selector.control)
.should('have.attr', 'aria-disabled', 'true');
});

it(`Should filter options when searching in view: ${viewport}`, () => {
Expand Down
12 changes: 12 additions & 0 deletions packages/react-select/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# react-select

## 5.7.7

### Patch Changes

- [`224a8f0d`](https://github.com/JedWatson/react-select/commit/224a8f0d01a5b6200ff10280a0d7a9b613383032) [#5666](https://github.com/JedWatson/react-select/pull/5666) Thanks [@yhy-1](https://github.com/yhy-1)! - Add aria-disabled to select's control component.

## 5.7.6

### Patch Changes

- [`f6315cd5`](https://github.com/JedWatson/react-select/commit/f6315cd5feddb2e9ea168bcad391b29990b53afb) [#5672](https://github.com/JedWatson/react-select/pull/5672) Thanks [@tu4mo](https://github.com/tu4mo)! - Fix for calling non-cancellable scroll events

## 5.7.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-select/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-select",
"version": "5.7.5",
"version": "5.7.7",
"description": "A Select control built with and for ReactJS",
"main": "dist/react-select.cjs.js",
"module": "dist/react-select.esm.js",
Expand Down
1 change: 1 addition & 0 deletions packages/react-select/src/components/Control.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ const Control = <
'control--menu-is-open': menuIsOpen,
})}
{...innerProps}
aria-disabled={isDisabled || undefined}
>
{children}
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/react-select/src/internal/useScrollCapture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useCallback, useEffect, useRef } from 'react';
import { supportsPassiveEvents } from '../utils';

const cancelScroll = (event: WheelEvent | TouchEvent) => {
event.preventDefault();
if (event.cancelable) event.preventDefault();
event.stopPropagation();
};

Expand Down

0 comments on commit 5908f99

Please sign in to comment.