-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(look&feel): select native #888
base: main
Are you sure you want to change the base?
Conversation
86eb66f
to
f9276ed
Compare
f9276ed
to
fcdb314
Compare
fcdb314
to
a40df1b
Compare
</option> | ||
)} | ||
{options.map((o) => ( | ||
<option key={o.label} value={o.value}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On ne devrait pas mettre la clé sur la value plutot ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
je c pas, l'un ou l'autre rien ne garanti que c unique de toute façon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@buddyvegas m'a conseille de faire combo label - value.
3423f63
to
c830a68
Compare
</option> | ||
)} | ||
{options.map((o) => ( | ||
<option key={`${o.label}-${o.value}`} value={o.value}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
au risque de changer l'implem mias pourquoi ne pas ce rattrocher de la syntaxe html natif a savoir de d'avoir un composant Options
<Select>
<Option>option 1 </Option>
<Option>option 2 </Option>
<Option>option 3 </Option>
<Option>option 3 </Option>
</Select>
```
ce qui permet à nous de plus gérer la key et serait au consommateur de gérer
qu'en penses tu ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
en faisant comme ca tu peux pas avoir de placeholder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ca serait au consommateur de le gérer parce que le placeholder sur un sélection c'est une option avec une value vide
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, j'ai change pour aller dans ce sens
df4e23e
c830a68
to
df4e23e
Compare
df4e23e
to
ff383c9
Compare
removed react-select dep to implement native select instead
as you know, options are not (yet!) stylable as they are managed by os
breaking from current implementation (value returned is now normal value of options instead of previous {label; value} of react-select)