chore: generate
This commit is contained in:
@@ -583,54 +583,54 @@ export const SessionQuestionDock: Component<{ request: QuestionRequest; onSubmit
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<form
|
<form
|
||||||
data-slot="question-option"
|
data-slot="question-option"
|
||||||
data-custom="true"
|
data-custom="true"
|
||||||
data-picked={on()}
|
data-picked={on()}
|
||||||
role={multi() ? "checkbox" : "radio"}
|
role={multi() ? "checkbox" : "radio"}
|
||||||
aria-checked={on()}
|
aria-checked={on()}
|
||||||
onMouseDown={(e) => {
|
onMouseDown={(e) => {
|
||||||
if (sending()) {
|
if (sending()) {
|
||||||
e.preventDefault()
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (e.target instanceof HTMLTextAreaElement) return
|
|
||||||
const input = e.currentTarget.querySelector('[data-slot="question-custom-input"]')
|
|
||||||
if (input instanceof HTMLTextAreaElement) input.focus()
|
|
||||||
}}
|
|
||||||
onSubmit={(e) => {
|
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
commitCustom()
|
return
|
||||||
}}
|
}
|
||||||
>
|
if (e.target instanceof HTMLTextAreaElement) return
|
||||||
<Mark multi={multi()} picked={on()} onClick={toggleCustomMark} />
|
const input = e.currentTarget.querySelector('[data-slot="question-custom-input"]')
|
||||||
<span data-slot="question-option-main">
|
if (input instanceof HTMLTextAreaElement) input.focus()
|
||||||
<span data-slot="option-label">{customLabel()}</span>
|
}}
|
||||||
<textarea
|
onSubmit={(e) => {
|
||||||
ref={focusCustom}
|
e.preventDefault()
|
||||||
data-slot="question-custom-input"
|
commitCustom()
|
||||||
placeholder={customPlaceholder()}
|
}}
|
||||||
value={input()}
|
>
|
||||||
rows={1}
|
<Mark multi={multi()} picked={on()} onClick={toggleCustomMark} />
|
||||||
disabled={sending()}
|
<span data-slot="question-option-main">
|
||||||
onKeyDown={(e) => {
|
<span data-slot="option-label">{customLabel()}</span>
|
||||||
if (e.key === "Escape") {
|
<textarea
|
||||||
e.preventDefault()
|
ref={focusCustom}
|
||||||
setStore("editing", false)
|
data-slot="question-custom-input"
|
||||||
focus(options().length)
|
placeholder={customPlaceholder()}
|
||||||
return
|
value={input()}
|
||||||
}
|
rows={1}
|
||||||
if ((e.metaKey || e.ctrlKey) && !e.altKey) return
|
disabled={sending()}
|
||||||
if (e.key !== "Enter" || e.shiftKey) return
|
onKeyDown={(e) => {
|
||||||
|
if (e.key === "Escape") {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
commitCustom()
|
setStore("editing", false)
|
||||||
}}
|
focus(options().length)
|
||||||
onInput={(e) => {
|
return
|
||||||
customUpdate(e.currentTarget.value)
|
}
|
||||||
resizeInput(e.currentTarget)
|
if ((e.metaKey || e.ctrlKey) && !e.altKey) return
|
||||||
}}
|
if (e.key !== "Enter" || e.shiftKey) return
|
||||||
/>
|
e.preventDefault()
|
||||||
</span>
|
commitCustom()
|
||||||
</form>
|
}}
|
||||||
|
onInput={(e) => {
|
||||||
|
customUpdate(e.currentTarget.value)
|
||||||
|
resizeInput(e.currentTarget)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
|
</form>
|
||||||
</Show>
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
</DockPrompt>
|
</DockPrompt>
|
||||||
|
|||||||
Reference in New Issue
Block a user