Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visibility with pathUndefined etc. is not working for itemPath in Iterate #4472

Open
andlbrei opened this issue Jan 17, 2025 · 0 comments
Open

Comments

@andlbrei
Copy link
Contributor

🐛 Bug Report

Not sure if this is a bug, or just not supported. But anyways...

Using Visibility with pathxxx like pathUndefined does not seem to work on itemPaths in Iterate.
Visibility with pathUndefined="/someItemPath" will always show the content, because the itemPath will be considered undefined.

We have some data we fetch from the server. Sometimes certain data fields are missing, and if they are missing we would like to show a Field to insert the data. If the data is there we show a Value.
Using pathUndefined for this seems perfect, but it's not working for itemPath/within Iterate.

To Reproduce

Steps to reproduce the behavior:
https://codesandbox.io/p/sandbox/itempath-visibility-rgnjyt

Expected behavior

I expect (or would like) it to be possible to use Visibility for itemPath in the exact same way as for path.

Eufemia Version

10.62.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant