aframevr / aframe

:a: Web framework for building virtual reality experiences.
https://aframe.io/
MIT License
16.69k stars 3.98k forks source link

empty string value always becomes default schema value #2623

Open machenmusik opened 7 years ago

machenmusik commented 7 years ago

... so there is no way to actually pass in empty string in distinguishable fashion (e.g. {type:'string', default:undefined} doesn't work since empty string BECOMES undefined)

codepen example http://codepen.io/machenmusik/pen/XRjYBO

note that it doesn't actually matter whether type is string or omitted entirely.

machenmusik commented 7 years ago

use case: Vive tracker has OpenVR id prefix, and empty string for hand. this bug makes it impossible to actually pass in empty string to hand in tracked-controls to match properly. see undesirable workaround in vive-tracker PR #2583

ngokevin commented 7 years ago

What's our proposed solution?