Skip to main content
Sign in
Snippets Groups Projects
Commit 621d3c60 authored by David Smadja's avatar David Smadja
Browse files
parent d276cab2
No related branches found
No related tags found
No related merge requests found
Pipeline #19467 passed
...@@ -370,18 +370,18 @@ ...@@ -370,18 +370,18 @@
year, year,
)} )}
{:else} {:else}
<!-- Input menu sélection --> {@const value = getSituationVariableValue(
<select
class="my-1 w-full rounded border-none bg-white p-1 pr-10 shadow-sm focus:border-le-bleu focus:text-le-bleu"
onblur={(event) => changeValue(event, populationId)}
onchange={(event) => changeValue(event, populationId)}
value={getSituationVariableValue(
situation, situation,
variable, variable,
populationId, populationId,
year, year,
)} )}
<!-- Input menu sélection -->
<select
class="my-1 w-full rounded border-none bg-white p-1 pr-10 shadow-sm focus:border-le-bleu focus:text-le-bleu"
onblur={(event) => changeValue(event, populationId)}
onchange={(event) => changeValue(event, populationId)}
{value}
> >
{#each Object.entries(variable.possible_values) as [symbol, label]} {#each Object.entries(variable.possible_values) as [symbol, label]}
<option value={symbol}>{label}</option> <option value={symbol}>{label}</option>
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment