takahirohonda / gatsby-portfolio-site-example

MyDatahack Blog Site with Gatsby.js
0 stars 0 forks source link

Bugfix/set value in select instead of set selected in option #4

Closed takahirohonda closed 2 years ago

takahirohonda commented 2 years ago

When we write a test on FlipCardSelect, we get this error and this is to fix the error

console.error
    Warning: Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>.
        at option
        at select
        at label
        at FlipCardSelect (/Users/taka/code/mdh/mydatahack-blog-site-gatsby/src/components/FlipCards/FlipCardSelect/FlipCardSelect.tsx:13:3)