File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99use ipl \Html \FormElement \HiddenElement ;
1010use ipl \Html \HtmlElement ;
1111use ipl \Html \HtmlString ;
12+ use ipl \Html \ValidHtml ;
1213use ipl \Stdlib \Events ;
1314use ipl \Web \FormElement \TermInput \RegisteredTerm ;
1415use ipl \Web \FormElement \TermInput \TermContainer ;
@@ -261,13 +262,13 @@ public function parseValue(string $value): array
261262 *
262263 * @param ServerRequestInterface $request
263264 *
264- * @return array
265+ * @return array<array{0: ValidHtml, 1: ?string}>
265266 */
266267 public function prepareMultipartUpdate (ServerRequestInterface $ request ): array
267268 {
268269 $ updates = [];
269270 if ($ this ->valueHasBeenPasted ()) {
270- $ updates [] = $ this ->termContainer ();
271+ $ updates [] = [ $ this ->termContainer (), null ] ;
271272 $ updates [] = [
272273 HtmlString::create (json_encode (
273274 ['# ' . Attribute::sanitizeId ($ this ->getValueOfNameAttribute ()) . '-search-input ' , []]
@@ -284,7 +285,7 @@ public function prepareMultipartUpdate(ServerRequestInterface $request): array
284285 }
285286
286287 if (empty ($ updates ) && $ this ->hasBeenAutoSubmitted ()) {
287- $ updates [] = $ updates [] = [
288+ $ updates [] = [
288289 HtmlString::create (json_encode (
289290 ['# ' . Attribute::sanitizeId ($ this ->getValueOfNameAttribute ()) . '-search-input ' , 'bogus ' ]
290291 )),
You can’t perform that action at this time.
0 commit comments