We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
numberinput
numberinputpositive
1 parent e2a76e6 commit d0dc4f5Copy full SHA for d0dc4f5
src/projects/detail/components/SpecQuestions.jsx
@@ -178,7 +178,8 @@ const SpecQuestions = ({
178
if (!isNaN(q.maxValue)) {
179
elemProps.maxValue = q.maxValue
180
}
181
- if (!isNaN(q.defaultValue)) {
+ // update with default value only if we don't have any value yet
182
+ if (!elemProps.value && !isNaN(q.defaultValue)) {
183
elemProps.value = q.defaultValue
184
185
break
@@ -191,7 +192,8 @@ const SpecQuestions = ({
191
192
193
194
195
196
197
198
199
0 commit comments