Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: ui5-select should support vue js v-model like native select #9971

Open
1 task done
pskelin opened this issue Oct 2, 2024 · 1 comment
Open
1 task done

Comments

@pskelin
Copy link
Contributor

pskelin commented Oct 2, 2024

Feature Request Description

with native select, it is possible to use it in vuejs like this:

<select v-model="select">
  <option value="a">A</option>
  <option value="b">B</option>
  <option value="c">C</option>
</select>

ui5-select requires a bit more code

<ui5-select @change="(e) => select = e.target.value" :value="select">
  <ui5-option value="a">A</ui5-option>
  <ui5-option value="b">B</ui5-option>
  <ui5-option value="c">C</ui5-option>
</ui5-select>

Proposed Solution

If the ui5-select fires an input event whenever the change event is fired, the vue model binding will work out of the box making such code possible

<ui5-select v-model="select">
  <ui5-option value="a">A</ui5-option>
  <ui5-option value="b">B</ui5-option>
  <ui5-option value="c">C</ui5-option>
</ui5-select>

Proposed Alternatives

No response

Organization

No response

Additional Context

No response

Priority

None

Privacy Policy

  • I’m not disclosing any internal or sensitive information.
@LidiyaGeorgieva
Copy link
Contributor

Hello @SAP/ui5-webcomponents-topic-p, take a look of this feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants