Skip to main content
cngx-src documentation

createScalarCommitHandler

Functionforms/select/commit

projects/forms/select/shared/scalar-commit-handler.ts

Description#

Scalar-shape commit flow shared by scalar select variants. Owns commit-controller lifecycle, reconciliation, togglingOption.set(null) on success, optimistic rollback on error. Consumer owns change-event emission, announcer severity (onCommitError), input-text mirroring (onValueWrite), and popover-close timing - handler never closes the panel.

Signature#

createScalarCommitHandler(opts: ScalarCommitHandlerOptions)

Parameters#

Returns#

ScalarCommitHandler