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

[Bug]: Lookdown control - value is empty if previously selected lookup is deactivated/made inactive #219

Open
dataverseDev opened this issue Jan 21, 2025 · 1 comment
Assignees
Labels
component: Lookdown A new way of Lookup type: bug 🐛 Something isn't working
Milestone

Comments

@dataverseDev
Copy link

Component

Lookdown

Component version

1.1.1.0

Current Behavior

Lookup field reverts to blank/empty if the previously selected record (value) for that lookup field has been deactivated.

Expected Behavior

The selected deactivated lookup record should persist and the lookup field should not self-clear (become null) if previously selected record is deactivated. Similar to the OOB lookup control. The selected lookup value should persist regardless of its state.

Steps to reproduce

  1. Using the lockdown, select a record from dropdown
  2. Deactivate the selected record
  3. Go back to the main form, the Lookdown control would show an empty value

Additional context

No response

@dataverseDev dataverseDev added the type: bug 🐛 Something isn't working label Jan 21, 2025
@dataverseDev dataverseDev changed the title [Bug]: Lookdown control - value is empty if previously selected lookup is made inactive/not a an option in list [Bug]: Lookdown control - value is empty if previously selected lookup is deactivated/made inactive Jan 21, 2025
@khoait
Copy link
Owner

khoait commented Feb 1, 2025

hi @dataverseDev thanks for reporting! the component is looking for the selected item from available options from the lookup view. when the item is deactivated the record is not included in the options list. that's why the value is set to empty.

I'll fix this and let you know when it is available in the next release.

@khoait khoait self-assigned this Feb 1, 2025
@khoait khoait added the component: Lookdown A new way of Lookup label Feb 1, 2025
@khoait khoait added this to the v1.1.1.1 milestone Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: Lookdown A new way of Lookup type: bug 🐛 Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants