opened
netbeansuser2019
username_0
Is it really correct to not read that back from Json to instance in https://github.com/vaadin/vaadin-form-layout-flow/blob/d3223e80538f0da71bd78045b50fe135077f9dc3/vaadin-form-layout-flow/src/main/java/com/vaadin/flow/component/formlayout/FormLayout.java#L293 ?
Getting ResponsiveSteps - class cast exception
issue
created
netbeansuser2019
username_0
It is long time ago I do not remember a steps, but I guess that there are probably no special steps or even uncommon against any of your examples. 
So I can only suggest to revise if you do properly conversion to and from JSON.

E.g. I do not see any usage of readJson() (of ResponsiveStep) in  getResponsiveSteps(), but it seems it has been done toJson() in setResponsiveSteps().
comment
created
appreciated
username_1
@alvarezguille It is possible to identify the underlying issue just by looking at the code of the `getResponsiveSteps` method. 

```
public List<ResponsiveStep> getResponsiveSteps() {
    JsonArray stepsJsonArray = (JsonArray) getElement()
            .getPropertyRaw("responsiveSteps");
    if (stepsJsonArray == null) {
        return Collections.emptyList();
    }
    List<ResponsiveStep> steps = new ArrayList<>();
    for (int i = 0; i < stepsJsonArray.length(); i++) {
        steps.add(stepsJsonArray.get(i)); // <-- stepsJsonArray.get(...) does not return a `ResponsiveStep` but instead a JSON Object. The transformation is missing
    }
    return steps;
}
```
comment
created
netbeansuser2019
username_0
@username_1 
I guess that such line was already type have look on link that open up this bug.
comment
created
TatuLund
username_2
I added the fix to version 1.0.1 of the EnahncedFormLayout 

https://vaadin.com/directory/component/enhancedformlayout
comment