lowcoder icon indicating copy to clipboard operation
lowcoder copied to clipboard

[Bug]: Conditionla Styling is getting reset or removed for components in List View

Open yogeshvachhani opened this issue 1 year ago • 2 comments
trafficstars

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

If we set any kind of conditional styling to any of the style parameters of a component inside ListView the style gets removed automatically.

For example if we enter this in Edit component's Style -> Text Decoration it gets removed when the screen is refreshed.

The condition that I am using is: {{currentItem.completed?"line-through":""}}

Expected Behavior

The conditional styling should stay.

Steps to reproduce

place a Listbox and add a Input component inside it.

In the Input component set the Style for Text Decoration as follows: {{currentItem.completed?"line-through":""}}

Refresh the page.

Environment

No response

Additional Information

No response

yogeshvachhani avatar Aug 03 '24 14:08 yogeshvachhani

There was duplicate issue of this : https://github.com/lowcoder-org/lowcoder/issues/1081 I have closed that one. Adding the comment just for reference.

adnanqaops avatar Aug 06 '24 14:08 adnanqaops

Having same issue with simple text display box setting background color. Changing static colors work fine but any conditional styling is replaced with previous static color. Have tried "prevent overriding styles" on and off, different browsers and a new app. Same result. Have attached before and after app which shows what I have explained. Conditional styles worked fine in earlier version 2.4.3(I think). Stopped working in 2.4.4 and 2.4.5. I am thinking it must be something in mongodb as I pull the latest images and force-recreate but still using same mongodb?

Lost style condition - post preview.json Lost style condition - editor.json

vinpro-nz avatar Aug 14 '24 19:08 vinpro-nz

This issue has been fixed. Conditional Styling is not getting removed after page refresh, So closing out this issue.

adnanqaops avatar Oct 07 '24 14:10 adnanqaops