Skip to content

Support ModelModifiers for components #5502

@hywax

Description

@hywax

Package

v4.x

Description

Add the addition of `Model Modifiers' for components:

  • Select
  • SelectMenu
  • InputMenu

This feature is sorely lacking.

An example from a working draft (and there are many such lines):

<USelect
  :model-value="infoForm.priority ?? undefined"
  :items="segmentPriorityItems"
  @update:model-value="infoForm.priority = $event"
/>

But I want to

<USelect
   v-model.optional="infoForm.priority"
   :items="segmentPriorityItems"
/>

I tried to add it myself, but it didn't work out the first time.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttriageAwaiting initial review and prioritizationv4#4488

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions