christogonus's avatar

christogonus wrote a comment+100 XP

3mos ago

I am not sure where I have missed the lines. I have watched the video twice and still can't get the MCP to show green

https://prnt.sc/KXtYgzC3xP1p

Any help will be appreciated.

christogonus's avatar

christogonus liked a comment+100 XP

3mos ago

@christogonus selectedOption becomes an object, not an array, after selection—so .length is undefined; use an object-safe check like:

wire:show="selectedOption.id"
christogonus's avatar

christogonus wrote a comment+100 XP

3mos ago

Trying to replicate this in an app, but not getting same output.

The select option and button to select shows when $selectedOption is empty array, and hidden when when value is selected. But the content div doesnt show after data is populated.