ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

MultiInput: Token Deletion is not working when readonly property is set to true for multiInput

Open nidhi0104 opened this issue 3 years ago • 1 comments

The function onTokenDelete is not getting triggered when the property 'readOnly' is set to true. If we keep 'readonly' as falsest is working but then user can create any token, but in our case we are using value help and getting tokens from there, so we don't want user can type any token apart from this.

https://codesandbox.io/s/multiinput-token-delete-2nfh2o?file=/src/Filter.js

To Reproduce Steps to reproduce the behavior:

  1. Go to MultiInput
  2. Click on cross button
  3. Token will not get deleted

Expected behavior Token should get Deleted.

UI5 Web Components for React Information @ui5/webcomponents version: "1.8.0", @ui5/webcomponents-react version:"1.0.1" Operating System: Browser:Chrome

nidhi0104 avatar Oct 13 '22 09:10 nidhi0104

Hi @nidhi0104

I believe this is the intended behavior, but since this component is developed by our UI5 Web Components colleagues, I'll transfer this issue to their repo. Also please note that there are still some open issues related to the readonly state of the component (See here https://github.com/SAP/ui5-webcomponents/issues/4522)

Hi colleagues, could you please assist @nidhi0104 with this issue?

Lukas742 avatar Oct 13 '22 09:10 Lukas742

Hi @nidhi0104,

This looks like a feature request to me. Yes, I can confirm that currently the "token-delete" event is not fired on readonly multiinputs because they are not editable.

Would you please give us more background of the use-case: why you need this event on non-editable input to give us a better understanding of this feature request.

Thanks, Diana

kineticjs avatar Oct 20 '22 13:10 kineticjs

I can confirm that this is an issue and you can follow #4522

Duplicate of: https://github.com/SAP/ui5-webcomponents/issues/4522

MapTo0 avatar Oct 24 '22 13:10 MapTo0