Skip to content
This repository was archived by the owner on Nov 26, 2020. It is now read-only.

Commit 7b272e5

Browse files
committed
script widget update response elements
1 parent 4e281e4 commit 7b272e5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/Voice/Tag/Url.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ public function __construct($url = null, $response = [])
1414

1515
public function onResponse($value, $tag)
1616
{
17-
return $this->setAttribute([
18-
'response' => [$value => $this->append($tag)]
17+
$new_tag = $this->append($tag);
18+
$this->setAttribute([
19+
'response' => [$value => array($new_tag)]
1920
], null, true);
21+
return $new_tag;
2022
}
2123

2224
public function getDefaultAttributes()

0 commit comments

Comments
 (0)