autocomplete commands after 1 symbol instead of 3

pull/2072/head^2
lianahus 3 years ago committed by yann300
parent 6d2531654c
commit 3b4788e8d1
  1. 2
      libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx

@ -382,7 +382,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
const handleAutoComplete = () => (
<div
className='remix_ui_terminal_popup bg-light ml-4 p-2 position-absolute text-left '
style={{ display: (autoCompletState.showSuggestions && autoCompletState.userInput !== '' && (autoCompletState.userInput.length > 2)) && autoCompletState.data._options.length > 0 ? 'block' : 'none' }}
style={{ display: (autoCompletState.showSuggestions && autoCompletState.userInput !== '' && (autoCompletState.userInput.length > 0)) && autoCompletState.data._options.length > 0 ? 'block' : 'none' }}
>
<div>
{autoCompletState.data._options.map((item, index) => {

Loading…
Cancel
Save