simplify rollback
This commit is contained in:
parent
ebae0afc81
commit
0a9dbd454f
4 changed files with 57 additions and 26 deletions
|
|
@ -151,7 +151,15 @@ export function InputBlock({ state: {kind, env, text, resolved, rollback}, setSt
|
|||
|
||||
return <span>
|
||||
<span className="">
|
||||
<input ref={ref} placeholder="start typing..." className="editable" value={text} onInput={onInput} onKeyDown={onKeyDown} onFocus={() => setHaveFocus(true)} onBlur={() => setTimeout(() => setHaveFocus(false), 200)}/>
|
||||
<input ref={ref}
|
||||
placeholder="start typing..."
|
||||
className="editable"
|
||||
value={text}
|
||||
onInput={onInput}
|
||||
onKeyDown={onKeyDown}
|
||||
onFocus={() => setHaveFocus(true)}
|
||||
onBlur={() => setHaveFocus(false)}
|
||||
/>
|
||||
<span className="text-block suggest">{singleSuggestion}</span>
|
||||
</span>
|
||||
<ShowIf cond={haveFocus}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue