Hey, there. Just got to the final video in the course and am going through and refactoring everything before working on deployment.
While doing the PropertyEditForm component, I noticed that you've got the value attributes of the <option> elements set to defaultValue instead of value. The <select> is the element that actually needs it and the <option>s should have a normal value attribute since they're not changeable by a user. Right? Or am I missing something?
If I try doing it exactly as it is in the refactored branch's PropertyEditForm, it looks like the markup is breaking. The <option> elements are rendered with no values, just the text inside the element, which makes me think they won't work correctly.
Hey, there. Just got to the final video in the course and am going through and refactoring everything before working on deployment.
While doing the PropertyEditForm component, I noticed that you've got the
value
attributes of the<option>
elements set todefaultValue
instead ofvalue
. The<select>
is the element that actually needs it and the<option>
s should have a normalvalue
attribute since they're not changeable by a user. Right? Or am I missing something?If I try doing it exactly as it is in the refactored branch's PropertyEditForm, it looks like the markup is breaking. The
<option>
elements are rendered with no values, just the text inside the element, which makes me think they won't work correctly.Thanks!