Skip to content

Commit 579bba9

Browse files
committed
Fix span rendering and improve SSR
1 parent 5d993e8 commit 579bba9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

html-api-debugger/interactivity.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ function generate_page( string $html, array $options ): string {
5151
),
5252
'html' => $html,
5353
'htmlapiResponse' => $htmlapi_response,
54-
'span' => null,
54+
'span' => false,
55+
'hoverSpan' => $htmlapi_response['html'],
5556

5657
'showClosers' => false,
5758
'showInvisible' => false,

html-api-debugger/view.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ let debounceInputAbortController = null;
6767
* @property {boolean} hoverInsertion
6868
*
6969
* @property {DOM} DOM
70-
* @property {HTMLAPISpan|null} span
70+
* @property {HTMLAPISpan|false} span
7171
* @property {string} hoverSpan
7272
* @property {readonly []|readonly [string,string,string]} hoverSpanSplit
7373
*/
@@ -247,7 +247,7 @@ const store = createStore(NS, {
247247
);
248248
},
249249
clearSpan() {
250-
store.state.span = null;
250+
store.state.span = false;
251251
},
252252

253253
/** @param {InputEvent} e */

0 commit comments

Comments
 (0)