[GH-ISSUE #175] does not work with gradio 3.28 #126

Closed
opened 2026-10-30 21:19:44 +00:00 by bsakaguchi · 11 comments
Owner

Originally created by @blacksino on GitHub (May 7, 2023).
Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/175

Hello,auto complete does not popup with gradio3.28

Originally created by @blacksino on GitHub (May 7, 2023). Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/175 Hello,auto complete does not popup with gradio3.28
Author
Owner

@cerseinusantara commented on GitHub (May 7, 2023):

also not working on 3.16 currently

<!-- gh-comment-id:1537287903 --> @cerseinusantara commented on GitHub (May 7, 2023): also not working on 3.16 currently
Author
Owner

@DominikDoom commented on GitHub (May 7, 2023):

It's working fine for me on 3.28. Please open your browser console (CTRL+SHIFT+I) and tell me if any errors related to tag autocomplete show up, or any errors in the webui terminal window.

<!-- gh-comment-id:1537381435 --> @DominikDoom commented on GitHub (May 7, 2023): It's working fine for me on 3.28. Please open your browser console (CTRL+SHIFT+I) and tell me if any errors related to tag autocomplete show up, or any errors in the webui terminal window.
Author
Owner

@phoenix commented on GitHub (May 7, 2023):

It's working fine for me on 3.28. Please open your browser console (CTRL+SHIFT+I) and tell me if any errors related to tag autocomplete show up, or any errors in the webui terminal window.

Uncaught (in promise) DOMException: Failed to execute 'appendChild' on 'Node': Only one element on document allowed.
at setup

gradioApp().appendChild(acStyle);

auto complete can popup,but can not navigate with keyboard

<!-- gh-comment-id:1537426480 --> @phoenix commented on GitHub (May 7, 2023): > It's working fine for me on 3.28. Please open your browser console (CTRL+SHIFT+I) and tell me if any errors related to tag autocomplete show up, or any errors in the webui terminal window. Uncaught (in promise) DOMException: Failed to execute 'appendChild' on 'Node': Only one element on document allowed. at setup gradioApp().appendChild(acStyle); auto complete can popup,but can not navigate with keyboard
Author
Owner

@DominikDoom commented on GitHub (May 7, 2023):

Does this also happen if other extensions beside tag autocomplete are disabled? This was a problem before with an outdated version of openpose-editor interfering.

<!-- gh-comment-id:1537429711 --> @DominikDoom commented on GitHub (May 7, 2023): Does this also happen if other extensions beside tag autocomplete are disabled? This was a problem before with an outdated version of openpose-editor interfering.
Author
Owner

@phoenix commented on GitHub (May 7, 2023):

Does this also happen if other extensions beside tag autocomplete are disabled? This was a problem before with an outdated version of openpose-editor interfering.

Thanks,everything works fine after update openpose-editor.

<!-- gh-comment-id:1537433918 --> @phoenix commented on GitHub (May 7, 2023): > Does this also happen if other extensions beside tag autocomplete are disabled? This was a problem before with an outdated version of openpose-editor interfering. Thanks,everything works fine after update openpose-editor.
Author
Owner

@roseyyy2022ai commented on GitHub (May 7, 2023):

Same thing here... not sure which gradio version I have but I believe latest (i'm kind of a noob, sorry)
My error:
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'textContent')
at updateModelName (_utils.js?1683480837.326589:110:42)
at setup (tagAutocomplete.js?1683480837.3275893:863:5)
lmk when there's a fix :)
btw i'm using This Colab notebook you can contribute to directly if you find errors in my code as well...

<!-- gh-comment-id:1537503190 --> @roseyyy2022ai commented on GitHub (May 7, 2023): Same thing here... not sure which gradio version I have but I believe latest (i'm kind of a noob, sorry) My error: Uncaught (in promise) TypeError: Cannot read properties of null (reading 'textContent') at updateModelName (_utils.js?1683480837.326589:110:42) at setup (tagAutocomplete.js?1683480837.3275893:863:5) lmk when there's a fix :) btw i'm using [This Colab notebook](https://colab.research.google.com/drive/1i2wQDB9XAdG_fHXhmr1j7ipr9-Y7-T2S?hl=en#scrollTo=sBbcB4vwj_jm) you can contribute to directly if you find errors in my code as well...
Author
Owner

@DominikDoom commented on GitHub (May 7, 2023):

@cerseinusantara @roseyyy2022ai I have found the issue for gradio 3.16 (which was a small oversight), should be fixed for you now.

As for @blacksino, 3.28 should work out of the box if you use a recent tag-autocomplete version. So if the issue still exists for you, again, I will need the error message to find out more.

<!-- gh-comment-id:1537516868 --> @DominikDoom commented on GitHub (May 7, 2023): @cerseinusantara @roseyyy2022ai I have found the issue for gradio 3.16 (which was a small oversight), should be fixed for you now. As for @blacksino, 3.28 should work out of the box if you use a recent tag-autocomplete version. So if the issue still exists for you, again, I will need the error message to find out more.
Author
Owner

@blacksino commented on GitHub (May 8, 2023):

sorry for replying late, caught SyntaxError: Identifier 'loading' has already been declared (at tagAutocomplete.js?1683546999.8080368:1:1):
截屏2023-05-08 20 03 01

<!-- gh-comment-id:1538241767 --> @blacksino commented on GitHub (May 8, 2023): sorry for replying late, caught SyntaxError: Identifier 'loading' has already been declared (at tagAutocomplete.js?1683546999.8080368:1:1): <img width="778" alt="截屏2023-05-08 20 03 01" src="https://user-images.githubusercontent.com/44363764/236818927-ff49abbf-5e02-473d-a370-3aaa3fd2dfb8.png">
Author
Owner

@DominikDoom commented on GitHub (May 8, 2023):

That is very likely an issue with another extension using a variable with the same name. I can probably fix it just by adding a more unique prefix, but just out of interest can you tell me what other extensions you use? Might be good to know in the future if it comes up again.

<!-- gh-comment-id:1538668450 --> @DominikDoom commented on GitHub (May 8, 2023): That is very likely an issue with another extension using a variable with the same name. I can probably fix it just by adding a more unique prefix, but just out of interest can you tell me what other extensions you use? Might be good to know in the future if it comes up again.
Author
Owner

@DominikDoom commented on GitHub (May 8, 2023):

@blacksino Should be fixed now, I added a prefix to make the name more distinct. On another note, I just remembered a similar case with #158. In that case the core issue was a duplicate old version of the autocomplete script in the webui root's javascript folder. So if it still happens to you after the fix, it might be that.

<!-- gh-comment-id:1538740570 --> @DominikDoom commented on GitHub (May 8, 2023): @blacksino Should be fixed now, I added a prefix to make the name more distinct. On another note, I just remembered a similar case with #158. In that case the core issue was a duplicate old version of the autocomplete script in the webui root's javascript folder. So if it still happens to you after the fix, it might be that.
Author
Owner

@blacksino commented on GitHub (May 10, 2023):

@blacksino Should be fixed now, I added a prefix to make the name more distinct. On another note, I just remembered a similar case with #158. In that case the core issue was a duplicate old version of the autocomplete script in the webui root's javascript folder. So if it still happens to you after the fix, it might be that.

It works perfectly fine now, my thanks to you.

<!-- gh-comment-id:1541492887 --> @blacksino commented on GitHub (May 10, 2023): > @blacksino Should be fixed now, I added a prefix to make the name more distinct. On another note, I just remembered a similar case with #158. In that case the core issue was a duplicate old version of the autocomplete script in the webui root's javascript folder. So if it still happens to you after the fix, it might be that. It works perfectly fine now, my thanks to you.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DominikDoom/a1111-sd-webui-tagcomplete#126
No description provided.