File tree Expand file tree Collapse file tree 1 file changed +27
-22
lines changed
packages/jupyter-chat/src/components/input Expand file tree Collapse file tree 1 file changed +27
-22
lines changed Original file line number Diff line number Diff line change @@ -185,20 +185,20 @@ export function ChatInput(props: ChatInput.IProps): JSX.Element {
185185 < Autocomplete
186186 { ...chatCommands . autocompleteProps }
187187 // ensure the autocomplete popup always renders on top
188- componentsProps = { {
188+ slotProps = { {
189189 popper : {
190190 placement : 'top'
191191 } ,
192192 paper : {
193193 sx : {
194194 border : '1px solid lightgray'
195195 }
196- }
197- } }
198- ListboxProps = { {
199- sx : {
200- '& .MuiAutocomplete-option' : {
201- padding : 2
196+ } ,
197+ listbox : {
198+ sx : {
199+ '& .MuiAutocomplete-option' : {
200+ padding : 2
201+ }
202202 }
203203 }
204204 } }
@@ -215,21 +215,26 @@ export function ChatInput(props: ChatInput.IProps): JSX.Element {
215215 onSelect = { ( ) =>
216216 ( model . cursorIndex = inputRef . current ?. selectionStart ?? null )
217217 }
218- InputProps = { {
219- ...params . InputProps ,
220- endAdornment : (
221- < InputAdornment position = "end" className = { INPUT_TOOLBAR_CLASS } >
222- { toolbarElements . map ( item => (
223- < item . element
224- model = { model }
225- chatCommandRegistry = { props . chatCommandRegistry }
226- />
227- ) ) }
228- </ InputAdornment >
229- )
230- } }
231- FormHelperTextProps = { {
232- sx : { marginLeft : 'auto' , marginRight : 0 }
218+ slotProps = { {
219+ input : {
220+ ...params . InputProps ,
221+ endAdornment : (
222+ < InputAdornment
223+ position = "end"
224+ className = { INPUT_TOOLBAR_CLASS }
225+ >
226+ { toolbarElements . map ( item => (
227+ < item . element
228+ model = { model }
229+ chatCommandRegistry = { props . chatCommandRegistry }
230+ />
231+ ) ) }
232+ </ InputAdornment >
233+ )
234+ } ,
235+ formHelperText : {
236+ sx : { marginLeft : 'auto' , marginRight : 0 }
237+ }
233238 } }
234239 helperText = { input . length > 2 ? helperText : ' ' }
235240 />
You can’t perform that action at this time.
0 commit comments