We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e97c368 commit 8c903c3Copy full SHA for 8c903c3
src/hooks/useMultipleSelection/index.js
@@ -1,4 +1,5 @@
1
import {useRef, useEffect, useCallback, useMemo} from 'react'
2
+import {isReactNative} from '../../is.macro'
3
import setStatus from '../../set-a11y-status'
4
import {handleRefs, callAllEventHandlers, normalizeArrowKey} from '../../utils'
5
import {
@@ -53,7 +54,7 @@ function useMultipleSelection(userProps = {}) {
53
54
// Effects.
55
/* Sets a11y status message on changes in selectedItem. */
56
useEffect(() => {
- if (isInitialMountRef.current) {
57
+ if (isInitialMountRef.current || isReactNative) {
58
return
59
}
60
0 commit comments