修复有些下拉列表选择出错问题

This commit is contained in:
g1879 2024-02-21 11:27:45 +08:00
parent 133cee1e75
commit e2393b1bf9

View File

@ -264,4 +264,4 @@ class SelectElement(object):
def _dispatch_change(self):
"""触发修改动作"""
self._ele.run_js('this.dispatchEvent(new Event("change", {bubbles: true}));')
self._ele.run_js('this.dispatchEvent(new CustomEvent("change", {bubbles: true}));')