Enum as Component Param

Hi!

I have made a Shared Component where I am trying to apply an Enum as a Component Param. However, if the Enum parameter input is defined at all (if an Enum is provided as a parameter input) when using the Component, or the Default Value is defined as any of the Enum values or null, an error is shown in Appfarm Dev-Tools under App Validation. If the input is left empty as a parameter or default value, these are all warnings instead. As a result of these errors my conditional styles are not working. Does anyone have any idea what could be the issue?



Hi!

I’ve been working on reproducing your issue and encountered the same error. However, the conditional styles still seem to work on my end, even with the error.

Could you confirm if the conditional styles aren’t working at all for you?

In any case, I’ve reported this bug to the team:)

Emma

The two first images show the definition and the appearance of one instance of use of my component. The two last images show the definition of the component. Without any input to Severity I would assume the background color would be light blue as defined, but it is “Warning Fill” as shown.


image

Here’s another example of the opposite, where I am expecting the conditional style on “Warning” to apply, but it doesn’t. Also, the icon does not come through:
image


Thank you for the additional information! I tried recreating the case again and I experienced the same problem with the conditional styles not working when using an ENUM. The team knows about the bug and it will be taken care of:)

1 Like