aboutsummaryrefslogtreecommitdiff
path: root/javascript/extensions.js
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2023-01-17 14:15:47 +0300
committerAUTOMATIC <16777216c@gmail.com>2023-01-17 14:15:47 +0300
commit38b7186e6e3a4dffc93225308b822f0dae43a47d (patch)
tree5840bd52fadea6271d0dbeb819de5214fde21285 /javascript/extensions.js
parentaede265f1d6d512ca9e51a305e98a96a215366c4 (diff)
update sending input event in java script to not cause exception in browser https://github.com/gradio-app/gradio/issues/2981
Diffstat (limited to 'javascript/extensions.js')
-rw-r--r--javascript/extensions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript/extensions.js b/javascript/extensions.js
index 59179ca6..ac6e35b9 100644
--- a/javascript/extensions.js
+++ b/javascript/extensions.js
@@ -29,7 +29,7 @@ function install_extension_from_index(button, url){
textarea = gradioApp().querySelector('#extension_to_install textarea')
textarea.value = url
- textarea.dispatchEvent(new Event("input", { bubbles: true }))
+ updateInput(textarea)
gradioApp().querySelector('#install_extension_button').click()
}