Skip to content
This repository was archived by the owner on Feb 3, 2024. It is now read-only.

Commit 8382049

Browse files
committed
docs: uppercase mode in select
1 parent aab5e2c commit 8382049

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/docs/components/select.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ modes.subscribe((modes) => {
1010
// Preserve the current selection by saving then re-assigning.
1111
var prevValue = el.value
1212
el.innerHTML = modes
13-
.map((m) => `<option value="${m}">${m}</option>`)
13+
.map(
14+
(m) =>
15+
`<option value="${m}">${
16+
m.charAt(0).toUpperCase() + m.slice(1)
17+
}</option>`,
18+
)
1419
.join('\n')
1520
el.value = prevValue
1621
})

0 commit comments

Comments
 (0)