SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

On this page

submitOnChange

Why JS.

tsx
import { submitOnChange } from "@sdxc/ui/app";

Usage

Applied to any element inside a form: submits that form through requestSubmit on every change, so the app's own submit handling (a frame, a fetch) takes the request.

Signature

typescript
submitOnChange(): MixinDescriptor<HTMLElement>

Examples

tsx
<span hidden mix={[submitOnChange()]} />
@sdxc/ui

Can’t find it? Contact us