-
Notifications
You must be signed in to change notification settings - Fork 102
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
VariantManagament: Unable to switch to default view after creating new one #6616
Comments
Hi @superdyzio I wasn't able to reproduce this issue. Please add an isolated example preferably by leveraging StackBlitz. You can either use the example I've created when trying to reproduce the issue, or our template. |
@superdyzio there was a mistake in my example. I didn't update the
Edit: Found another problem... I'll update this issue once this is fixed as well. This PR will add a note explaining which props need to be unique for each |
@Lukas742 I see, we'll make sure that we always have only one default variant, thanks for the investigation! we're waiting for your remaining fixes and looking forward to the release including our recent bugfixes 🎉 |
The issue I found previously will also be resolved by the linked PR. In some cases the Apart from that I've edited my example from above to include all necessities:
https://stackblitz.com/edit/ui5wcr-vm-saveas-gewoqx?file=src%2FApp.tsx |
🎉 This issue has been resolved in version v2.5.0 🎉 The release is available on v2.5.0 Your semantic-release bot 📦🚀 |
Describe the bug
On some of our views we have analytical tables with VariantManagament. Whenever user enters such view for the first time he/she gets the default, hardcoded variant called
Standard
. When user introduces some change in the column config thenSave as
button becomes active, user saves the view asStandard2
(name doesn't matter here) withSet as default
checkbox checked. After this action user gets to theStandard2
variant and it's not possible to change the variant back toStandard
. Also, it looks likeStandard
is still selected.In the scenario when user have more variants, only the previously selected one is blocked - other variants can be accessed and when user switches to one of them then
Standard
would get unblocked.Isolated Example
No response
Reproduction steps
Prerequisite: only default variant present in variant manager
Save as
new variantExpected Behaviour
All of the variants are selectable and working no matter if user just created a new variant.
Screenshots or Videos
UI5 Web Components for React Version
2.1.1
UI5 Web Components Version
2.2.0
Browser
Chrome
Operating System
MacOS Sequoia 15.1
Additional Context
Analytical tables used with the VariantManagament are very big, up to almost 300 columns and god-knows-how-many rows.
Relevant log output
No response
Organization
SAP Fioneer
Declaration
The text was updated successfully, but these errors were encountered: