UI5 / UI5/openui5

Enhancement: sap.m.Input with "clear" button if valueHelpOnly="true"

Open
#898 4 comments 3 reactions 1 assignee View on GitHub

@olannyv is already working on this.

Since Feb 12, 2025.

enhancement in progress
Dominant language
JavaScript
Stars
3.3k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

This is an enhancement request for sap.m.Input:

If the input control is in mode valueHelpOnly="true" there is no way for the user to clear the input field once a value has been chosen through the value help.

https://openui5.netweaver.ondemand.com/explored.html#/sample/sap.m.sample.InputStates/preview

This means that valueHelpOnly="true" can only be used for mandatory fields which must be filled by the user. For optional fields we would need some kind of extra button to clear the input.

I wish for some kind of "X" icon/button at the right end of the input which can be clicked to clear the input value.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.