File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -150,12 +150,8 @@ export function useAutoCompleteCreation({
150150 const getPendingCreateList = useCallback (
151151 ( text : string ) : string [ ] => {
152152 const processed = processBulkCreate ( text ) ;
153- const optionNames = new Set (
154- options . map ( ( o ) => o . name . toLowerCase ( ) ) ,
155- ) ;
156- return processed . filter (
157- ( part ) => ! optionNames . has ( part . toLowerCase ( ) ) ,
158- ) ;
153+ const optionNames = new Set ( options . map ( ( o ) => o . name . toLowerCase ( ) ) ) ;
154+ return processed . filter ( ( part ) => ! optionNames . has ( part . toLowerCase ( ) ) ) ;
159155 } ,
160156 [ options , processBulkCreate ] ,
161157 ) ;
@@ -319,6 +315,7 @@ export function useAutoCompleteCreation({
319315 processBulkCreate ,
320316 resetCreationInputs ,
321317 stepByStepBulkCreate ,
318+ setSearchText ,
322319 toggleOpen ,
323320 ] ) ;
324321
Original file line number Diff line number Diff line change 1- import { DateType } from '@mezzanine-ui/core/calendar' ;
21import CalendarMethodsMoment from '@mezzanine-ui/core/calendarMethodsMoment' ;
32import moment from 'moment' ;
43import { getUnitLabel } from '@mezzanine-ui/core/time-panel' ;
98} from '../../__test-utils__/common' ;
109import TimePanel from '.' ;
1110import { CalendarConfigProvider } from '../Calendar' ;
12- import { TimePanelProps } from './TimePanel' ;
1311
1412describe ( '<TimePanel />' , ( ) => {
1513 Element . prototype . scrollTo = ( ) => { } ;
You can’t perform that action at this time.
0 commit comments