Skip to content
New issue

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

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

Already on GitHub? # to your account

Autocomplete does not work if form containing autocomplete is embedded in another form #115

Closed
akrishnamo opened this issue Aug 27, 2021 · 2 comments
Assignees

Comments

@akrishnamo
Copy link

Issue:
If I have a form (say form1) that contains an Autocomplete component.
If I now embed form1 in another form, say form2 (by doing say form2.content_panel.add_component(form1()), then

  • The autocomplete displays in UI properly
  • but when you click in it - it fails and throws the following error
ValueError: This component is already added to a container, call remove_from_parent() first
at app/anvil_extras/Autocomplete/__init__.py, line 111 column 12
  called from app/anvil_extras/Autocomplete/__init__.py, line 204 column 8
@s-cork
Copy link
Collaborator

s-cork commented Aug 27, 2021

Do you have a clone link? I couldn't reproduce doing the obvious thing.

@s-cork s-cork self-assigned this Aug 27, 2021
@akrishnamo
Copy link
Author

Sorry, my bad. Suggestions had null and duplicate values. Works as expected. not an issue

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants