Skip to content

Commit

Permalink
fix: html placeholder attribute position in input node (bernaferrari#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaleWebb committed May 27, 2022
1 parent 4c5992a commit 4fd675a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/html/htmlMain.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ describe("HTML Main", () => {

frameNode.name = "this is the InPuT";
expect(htmlMain([frameNode])).toEqual(
'<input style="font-size: 26px;"> placeholder="username"</input>'
'<input style="font-size: 26px;" placeholder="username"></input>'
);
});

Expand Down
2 changes: 1 addition & 1 deletion src/html/htmlMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export const htmlContainer = (
.border(node);

if (isInput) {
return `\n<input${builder.build(additionalStyle)}>${children}</input>`;
return `\n<input${builder.build(additionalStyle)}${children}></input>`;
}

if (builder.style || additionalStyle) {
Expand Down

0 comments on commit 4fd675a

Please sign in to comment.