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

openByDefault = "first" does not work with filters #569

Closed
bjosttveit opened this issue Oct 20, 2022 · 1 comment · Fixed by #571
Closed

openByDefault = "first" does not work with filters #569

bjosttveit opened this issue Oct 20, 2022 · 1 comment · Fixed by #571
Labels
kind/bug Something isn't working

Comments

@bjosttveit
Copy link
Member

bjosttveit commented Oct 20, 2022

Description of the bug

openByDefault = first sets the editIndex to 0 regardless of filters. If the index 0 is filtered out, no item will be opened. Additionally this leads to the add new element button disappearing. Probably also applies to openByDefault = "last".

image

Steps To Reproduce

  1. Set up a repeating group with a filter that hides the first element, and uses openByDefault = 'first'.
"edit": {
    "openByDefault": "first",
    "filter": [
      {"key": "Innflytter.TidligereBosteder.Postnr","value": "0102"}
    ]
},

Additional Information

No response

@bjosttveit bjosttveit added kind/bug Something isn't working status/triage labels Oct 20, 2022
@bjosttveit bjosttveit self-assigned this Oct 20, 2022
@bjosttveit bjosttveit moved this to 👷 In Progress in Team Apps Oct 20, 2022
@bjosttveit bjosttveit linked a pull request Oct 20, 2022 that will close this issue
3 tasks
Repository owner moved this from 👷 In Progress to ✅ Done in Team Apps Oct 21, 2022
@bjosttveit bjosttveit moved this from ✅ Done to 🧪 Test in Team Apps Oct 21, 2022
@bjosttveit bjosttveit removed their assignment Oct 21, 2022
@StianVestli
Copy link

Ser ok ut nå etter det man kan se.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants