Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix: bubble change event so that react handlers can handle the event

shyam-kingd58d821144e3
diff --git a/browser_use/controller/service.py b/browser_use/controller/service.py
index 93f3758f3..6b04d8754 100644
--- a/browser_use/controller/service.py
+++ b/browser_use/controller/service.py
@@ -425,7 +425,7 @@ class Controller:
}
select.value = option.value;
- select.dispatchEvent(new Event('change'));
+ select.dispatchEvent(new Event('change', { bubbles: true }));
return {
success: true,
selectedValue: option.value,