* zin: fix bind event from query command not work.

This commit is contained in:
sunhao
2024-02-29 09:55:03 +08:00
parent cfae9cb585
commit 321c9203fe
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -343,6 +343,13 @@ class node implements \JsonSerializable
public function bindEvent(string $event, object|array $info)
{
if($info instanceof jsCallback)
{
$this->props->bindEvent($event, $info->toJS());
$this->removeBuildData();
return;
}
if(is_array($info)) $info = (object)$info;
if(!isset($this->eventBindings[$event])) $this->eventBindings[$event] = array();
$this->eventBindings[$event][] = $info;