Core.js:14136 WARNING: sanitizing unsafe style value display:false?'flex':'none'

Hi ,
I have a form where I hide some form fields based on a value.
Because just using the visibility attribute of the components do not hide the row or column , and leave blank space in the form , I also added a attribute to the lay-out row "style" with value display:none.

This works however we get an Warning from in the debugger that this is not safe and is sanitized.

core.js:14136 WARNING: sanitizing unsafe style value display:false?'flex':'none'

how to avoid this warning.

Solved it using style binding attribute name : style.display value bind to page property value 'none' or 'flex'.
image