Skip to content

Commit 2412d2a

Browse files
committed
1 parent c3bca70 commit 2412d2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/javascript/components_confirmation.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ Some dialogs require additional input elements, for example, the prompt to remov
124124
const { result, dialog } = await confirmationFactory()
125125
.custom(theQuestionToAsk)
126126
.withFormElements((dialog) => {
127-
const p = document.createElement("<p>Hello World</p>");
127+
const p = document.createElement("p");
128+
p.textContent = "Hello World";
128129
dialog.content.append(p);
129130
});
130131
if (result) {

0 commit comments

Comments
 (0)