@@ -21,7 +21,7 @@ const meta: ComponentMeta< typeof FormTokenField > = {
21
21
control : { type : null } ,
22
22
} ,
23
23
__experimentalValidateInput : {
24
- control : { type : 'boolean' } ,
24
+ control : { type : null } ,
25
25
} ,
26
26
} ,
27
27
parameters : {
@@ -43,7 +43,6 @@ const continents = [
43
43
] ;
44
44
45
45
const DefaultTemplate : ComponentStory < typeof FormTokenField > = ( {
46
- __experimentalValidateInput,
47
46
...args
48
47
} ) => {
49
48
const [ selectedContinents , setSelectedContinents ] = useState <
@@ -55,11 +54,6 @@ const DefaultTemplate: ComponentStory< typeof FormTokenField > = ( {
55
54
{ ...args }
56
55
value = { selectedContinents }
57
56
onChange = { ( tokens ) => setSelectedContinents ( tokens ) }
58
- __experimentalValidateInput = {
59
- __experimentalValidateInput
60
- ? ( newValue ) => continents . includes ( newValue )
61
- : ( ) => true
62
- }
63
57
/>
64
58
) ;
65
59
} ;
@@ -73,7 +67,6 @@ Default.args = {
73
67
} ;
74
68
75
69
export const Async : ComponentStory < typeof FormTokenField > = ( {
76
- __experimentalValidateInput,
77
70
suggestions,
78
71
...args
79
72
} ) => {
@@ -102,11 +95,6 @@ export const Async: ComponentStory< typeof FormTokenField > = ( {
102
95
suggestions = { availableContinents }
103
96
onChange = { ( tokens ) => setSelectedContinents ( tokens ) }
104
97
onInputChange = { searchContinents }
105
- __experimentalValidateInput = {
106
- __experimentalValidateInput
107
- ? ( newValue ) => continents . includes ( newValue )
108
- : ( ) => true
109
- }
110
98
/>
111
99
) ;
112
100
} ;
0 commit comments