[FE][Certs] Automatically transform the custom label to uppercase

master
Araozu 2023-10-25 15:09:09 -05:00
parent 8ccc53fd27
commit 2bd0c2c695
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ export function CustomLabelSelect(props: {
placeholder="Denominación" placeholder="Denominación"
onkeyup={iHandler} onkeyup={iHandler}
value={inputValue()} value={inputValue()}
onchange={(ev) => setInputValue(ev.target.value)} oninput={(ev) => setInputValue(ev.target.value.toUpperCase())}
autocomplete="off" autocomplete="off"
/> />

View File

@ -107,7 +107,7 @@ export function ManualRegistration(props: {
<Show when={courseHasCustomLabel()}> <Show when={courseHasCustomLabel()}>
<div class="relative"> <div class="relative">
<CustomLabelSelect <CustomLabelSelect
onChange={setCustomLabel} onChange={(v) => setCustomLabel(v.toUpperCase())}
count={count()} count={count()}
/> />
<label for="create-date" class="absolute -top-2 left-2 text-xs bg-c-surface px-1"> <label for="create-date" class="absolute -top-2 left-2 text-xs bg-c-surface px-1">