Skip to content

Commit 263a2c0

Browse files
JaZoramazansancar
authored andcommitted
fix: remove trailing space from classname (#435)
I noticed the class of the input had a trailing space and saw the `cx` helper function wasn't used there. Co-authored-by: Ramazan Sancar <ramazansancar4545@gmail.com>
1 parent 934de5c commit 263a2c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SearchElement.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default class SearchElement {
3838

3939
this.form = createElement<HTMLFormElement>(
4040
'form',
41-
['', classNames.form].join(' '),
41+
cx('', classNames.form),
4242
this.container,
4343
{
4444
autocomplete: 'none',
@@ -51,7 +51,7 @@ export default class SearchElement {
5151

5252
this.input = createElement<HTMLInputElement>(
5353
'input',
54-
['glass', classNames.input].join(' '),
54+
cx('glass', classNames.input),
5555
this.form,
5656
{
5757
type: 'text',

0 commit comments

Comments
 (0)