Closed mateusvelleda closed 5 years ago
This way it's not going to set "undefined" to a input when an undefinedor null value is passed. jQuery handles this way - check https://github.com/jquery/jquery/blob/master/src/attributes/val.js#L61 An example is:
"undefined"
undefined
null
const a = {b: 'b'} $('input').val(a.c)
currently jBone will set "undefined" as the input's value
I left an example here https://codepen.io/mvellar/pen/GBpGdE?editors=1010
This way it's not going to set
"undefined"
to a input when anundefined
ornull
value is passed. jQuery handles this way - check https://github.com/jquery/jquery/blob/master/src/attributes/val.js#L61 An example is:currently jBone will set "undefined" as the input's value