Closed Harown closed 9 months ago
Given:
A questionnaire with an integer question and a response with value 0.
0
Expected:
Calling mergeFHIRDataIntoLForms renders the 0 into the question input.
mergeFHIRDataIntoLForms
Actual:
Calling mergeFHIRDataIntoLForms ignores the 0 and puts nothing into the question input.
Tested version:
Fiddle: https://jsfiddle.net/axk57f4L/1/ You can set the valueInteger to any integer - works ... but not for 0.
valueInteger
This is not restricted to integer types but also to decimal and maybe some more number types.
integer
decimal
Is this a bug or intended behaviour?
Thanks!
It is indeed a bug. It's fixed in the next version, which will be releases soon.
It is fixed in v34.0.3.
Great, thank you for the quick fix.
Given:
A questionnaire with an integer question and a response with value
0
.Expected:
Calling
mergeFHIRDataIntoLForms
renders the0
into the question input.Actual:
Calling
mergeFHIRDataIntoLForms
ignores the0
and puts nothing into the question input.Tested version:
Fiddle: https://jsfiddle.net/axk57f4L/1/ You can set the
valueInteger
to any integer - works ... but not for0
.This is not restricted to
integer
types but also todecimal
and maybe some more number types.Is this a bug or intended behaviour?
Thanks!