Skip to content

Does FormData or serialize have filter-for-changed-elements only option? #1440

Answered by claviska
khpss asked this question in Help
Discussion options

You must be logged in to vote

There's nothing like that built in, but we do expose getFormControls() from the same module that you can use to get all native and Shoelace form controls in a form. That combined with the defaultValue property could get you pretty close.

Is there a native counterpart to what you're asking for? I can't think of anything aside from comparing defaultValue to value.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@khpss
Comment options

@khpss
Comment options

@claviska
Comment options

Answer selected by khpss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants