On Click - do nothing causes warnings that do not make sense and I do not want.. (9.24.10) - Mendix Forum

On Click - do nothing causes warnings that do not make sense and I do not want.. (9.24.10)

1

Hi all,

 

We have a policy within my company to not commit anything with warnings. A good practice, yet, there are multiple widgets that have the 'On click' property giving a warning when set to 'do nothing' forcing me to do work arounds to get rid of them.

 

I get why you would give such a warning for a 'button' since they are widgets that require an on click action, but I don't see why I absolutely have to set an 'On Click' event on for example the 'progress bar' and 'badge' widgets.

 

To prevent warnings I now have to call a 'DoNothing' nanoflow and use custom CSS styling to remove the cursor pointer since it now adds a class 'clickable'. Why can't 'Do Nothing' just be OK?

 

The way I see it, there are two solutions:

Anyone else having issues with this?

Posted
1 comments

Hi Jannes, 

 

i agree it's annoying..I believe if we have an option of suppressing warning to widget option also available here. 

 

 

image.png

Created
Yeah that is also an option thought I would prefer prevention over 'treating symptoms'.
Created