Open tkeiner opened 3 months ago
Thanks for reporting! I'll forward this issue to our UI5 Web Components Colleagues as the affected component is developed in their repository.
Hello @SAP/ui5-webcomponents-topic-rd ,
Could you please review this feature request and assess whether it's worth considering for implementation?
Thanks and Best regards, Yana
Hello @tkeiner ,
In this case nothing changes, the file name remains the same. Please justify what would be the benefit of such event? Can you share your intended use case?
Best regards, Petar
Hi @dimovpetar, There is a use case for this, which is to extend the edit functionality of the upload collection item. In our case, it was to add an input field to allow users to add additional information, when the rename is active.
I understand that this is an edge case, and I understand that this approach may not align with the web component strategy. Also, our use case could be implemented by querying for the required button and adding a listener. Having a dedicated event for the state of the rename (rename started, rename canceled, renamed) would have been nice to improve our code quality, which is the reason I opened the feature request.
Regards, Tobias
Hello @tkeiner ,
Please edit this Stackblitz https://stackblitz.com/edit/js-vsrpnb?file=index.js,index.html to show your example. We will then evaluate your request. Adding event listener to elements in the shadow root is not supported and most likely won't work in the future.
Best regards, Petar
Would it be fine if I create a Stackblitz with ui5 web components for React? I am more comfortable with React.
Would it be fine if I create a Stackblitz with ui5 web components for React? I am more comfortable with React.
Sure, it's fine :)
Hello, everyone! The issue has been inactive for 21 days. If there are still questions or comments, please feel free to continue the discussion. Inactive issues will be closed after 7 days!
Is your feature request related to a problem?
The UploadCollectionItem has a custom event that is fired when the attachment is renamed. However, there is no event for when the rename is cancelled. Currently I have to access the item via the querySelector and add an EventListener. This approach works but is not ideal.
Describe the solution you'd like
It would be great if the web components could also provide a custom event in case the rename is cancelled.
Describe alternatives you've considered
No response
Additional Context
No response
Organization
No response
Declaration