Skip to content

Option to disable data-model on a field #2943

@FluffyDiscord

Description

@FluffyDiscord

I have form that renders form type from a third party bundle that contains dummy form inputs for selection that are not registered in their form type.

My form uses data-model="on(change)|*" to "auto-validate" it against Symfony back-end. Every time the dummy input field changes, live component throws an error that data model with that field name does not exist (obviously).

I need to somehow blacklist that input, either using CSS selector, or by adding attribute to it that stops/ignores it.

<form data-model="on(change)|*">
    <input name="dummy"/> <-- need to somehow exclude it from the change event
</form>

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRFC = Request For Comments (proposals about features that you want to be discussed)Status: Waiting feedbackNeeds feedback from the author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions