Skip to content

Commit cb8062f

Browse files
Kaizefir-git
andauthored
Change appendChild to prepend
Co-authored-by: Zefir <[email protected]>
1 parent 35719e2 commit cb8062f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BaseComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export abstract class BaseComponent<T extends Element> {
6565
* Insert component before the first child
6666
*/
6767
public prepend(...components: BaseComponent<any>[]) {
68-
components.forEach((component) => this.element.appendChild(component.element))
68+
components.forEach((component) => this.element.prepend(component.element))
6969
return this;
7070
}
7171

0 commit comments

Comments
 (0)