flow-components
flow-components copied to clipboard
fix: make form layout responsive steps getter work properly
Description
Form layout responsive steps getter does not work at all. Included test describes the case.
Type of change
- [x] Bugfix
- [ ] Feature
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
Dear @akhodyko, the API has been confirmed to not be working properly and it should be fixed. Could you please share your use case for the API usage, so enhancements can be considered along the way and corresponding issues can be created?
Dear @akhodyko, the API has been confirmed to not be working properly and it should be fixed. Could you please share your use case for the API usage, so enhancements can be considered along the way and corresponding issues can be created?
My use case is quite simple, it just about adding an additional responsiveStep to existing:
FormLayout formLayout = getFormLayout();
FormLayout.ResponsiveStep responsiveStep = createResponsiveStep();
List<FormLayout.ResponsiveStep> responsiveSteps = new ArrayList<>(formLayout.getResponsiveSteps());
responsiveSteps.add(responsiveStep);
formLayout.setResponsiveSteps(responsiveSteps);
We had an internal discussion and decided to reuse the existing public constructor instead of introducing a new private one. We can always add the default constructor later if there is a request for it. I've updated the PR accordingly.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
This ticket/PR has been released with Vaadin 24.5.0.alpha1 and is also targeting the upcoming stable 24.5.0 version.