13
13
import { ActionButton } from '@react-spectrum/button' ;
14
14
import { AriaTagGroupProps , TagKeyboardDelegate , useTagGroup } from '@react-aria/tag' ;
15
15
import { classNames , useDOMRef } from '@react-spectrum/utils' ;
16
- import { DOMRef , SpectrumHelpTextProps , SpectrumLabelableProps , StyleProps , Validation } from '@react-types/shared' ;
16
+ import { DOMRef , SpectrumHelpTextProps , SpectrumLabelableProps , StyleProps } from '@react-types/shared' ;
17
17
import { Field } from '@react-spectrum/label' ;
18
18
import { FocusScope } from '@react-aria/focus' ;
19
19
// @ts -ignore
@@ -28,7 +28,7 @@ import {useId, useLayoutEffect, useResizeObserver, useValueEffect} from '@react-
28
28
import { useLocale , useLocalizedStringFormatter } from '@react-aria/i18n' ;
29
29
import { useTagGroupState } from '@react-stately/tag' ;
30
30
31
- export interface SpectrumTagGroupProps < T > extends AriaTagGroupProps < T > , StyleProps , SpectrumLabelableProps , Validation , Omit < SpectrumHelpTextProps , 'showErrorIcon' > {
31
+ export interface SpectrumTagGroupProps < T > extends AriaTagGroupProps < T > , StyleProps , SpectrumLabelableProps , Omit < SpectrumHelpTextProps , 'showErrorIcon' > {
32
32
/** The label to display on the action button. */
33
33
actionLabel ?: string ,
34
34
/** Handler that is called when the action button is pressed. */
@@ -70,7 +70,7 @@ function TagGroup<T extends object>(props: SpectrumTagGroupProps<T>, ref: DOMRef
70
70
let computeVisibleTagCount = ( ) => {
71
71
// Refs can be null at runtime.
72
72
let currDomRef : HTMLDivElement | null = domRef . current ;
73
- let currContainerRef : HTMLDivElement | null = containerRef . current ;
73
+ let currContainerRef : HTMLDivElement | null = containerRef . current ;
74
74
let currTagsRef : HTMLDivElement | null = tagsRef . current ;
75
75
if ( ! currDomRef || ! currContainerRef || ! currTagsRef ) {
76
76
return ;
@@ -113,7 +113,7 @@ function TagGroup<T extends object>(props: SpectrumTagGroupProps<T>, ref: DOMRef
113
113
}
114
114
return { visibleTagCount : index , showCollapseButton : index < state . collection . size } ;
115
115
} ;
116
-
116
+
117
117
setTagState ( function * ( ) {
118
118
// Update to show all items.
119
119
yield { visibleTagCount : state . collection . size , showCollapseButton : true } ;
0 commit comments