flow-components icon indicating copy to clipboard operation
flow-components copied to clipboard

fix: make form layout responsive steps getter work properly

Open akhodyko opened this issue 1 year ago • 5 comments

Description

Form layout responsive steps getter does not work at all. Included test describes the case.

Type of change

  • [x] Bugfix
  • [ ] Feature

akhodyko avatar Apr 26 '24 14:04 akhodyko

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Apr 26 '24 14:04 CLAassistant

CLA assistant check
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.

CLAassistant avatar Apr 26 '24 14:04 CLAassistant

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?

yuriy-fix avatar Apr 30 '24 07:04 yuriy-fix

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);

akhodyko avatar May 02 '24 08:05 akhodyko

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.

vursen avatar May 07 '24 10:05 vursen

This ticket/PR has been released with Vaadin 24.5.0.alpha1 and is also targeting the upcoming stable 24.5.0 version.

vaadin-bot avatar May 31 '24 11:05 vaadin-bot