-
Notifications
You must be signed in to change notification settings - Fork 104
VariantManagement: impossible to trigger delete action for public (global) views #6706
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
Comments
Hi @superdyzio unfortunately, we can't assist you with this issue without a reproducible example. I tested the prop with both allowed values ( In v2.5.0, we addressed several issues related to boolean handling in the component, so updating might resolve this issue as well. If it doesn’t, please try to isolate the problem. If that's not feasible, feel free to contact me internally, and we can debug the component together. |
thank you very much for the time spent on that @Lukas742! 🙏 do you have any ideas why? what to look for? for now it's fixed by just removing the wrapper, and since I cannot reproduce it outside of our code, I'm perfectly fine with this issue being closed, I'm just hoping that your answers to above questions will give me some new leads 😄 it's awesome that you just released v2.5.0, it will resolve some todos on our side, thanks! 🎉 |
@superdyzio I played around a bit with wrapped items, but wasn't able to break the component. Still, I can't guarantee that wrapping is supported, or tell exactly what isn't. For this I would need to investigate a lot more, for which I unfortunately don't have the capacity at the moment. All I can say right now is that there could be issues, because we expect the So, for now I'm going to close this issue, but in case you're able to isolate the problem, or if it becomes relevant again, please feel free to leave a comment or open a new issue. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
There is no possibility to force delete icon to show next to the public (
global: true
variants). I was expectinghideDelete={false}
to do the trick and according to the logic inManageViewsTableRows.tsx:216
it should:but in our case it is not enough. All of my elements have
data-hide-delete="false"
attribute buthideDelete
is stillundefined
. Do I need to provide some additional data?Unfortunately it works correctly in the Stackblitz example 😅 so it's possible that the issue is actually on our side, but I cannot track it down and since I can see the attributes correctly added to the elements I have a feeling that something might be broken also on the library side
I'm looking forward to explanation of the issue and if needed, as usual, I'll be happy to provide a PR.
Isolated Example
https://stackblitz.com/edit/github-cbs6vz?file=src%2FApp.tsx
Reproduction steps
hideDelete={false}
on all<VariantItem>
instances.❌ icon is visible only next to the private (
global: false
) views.Expected Behaviour
When I set
hideDelete={false}
I get the delete variant icon no matter what. I expect boolean flags to be independent and predictable, if I'd like to hide delete button for public variants only I would dohideDelete={item.global}
.Screenshots or Videos
(
apply automatically
header visible in the screenshot is a different bug, tracked here: #6618)UI5 Web Components for React Version
2.4.0
UI5 Web Components Version
2.4.0
Browser
Chrome
Operating System
MacOS Sequoia 15.1.1
Additional Context
Our usage of
VariantItem
:Relevant log output
No response
Organization
SAP Fioneer
Declaration
The text was updated successfully, but these errors were encountered: