wesleyboar / wesleyb-sample-wysiwyg-rpg-card-maker

Prototype interface to edit card for a generic RPG trading card game
1 stars 0 forks source link

Determine and Evaluate Type of Attribute Input Value #13

Open wesleyboar-fka-iosulfur opened 5 years ago

wesleyboar-fka-iosulfur commented 5 years ago

The output.c-attr-input__value is given a class based on whether the numeric value of input.c-attr-input__field is positive or negative, but the value is typecast by assumption. See:

Instead, there should be a shared function that checks type of input. If type is number or range, only then should code set/assign class according to numeric value.

Known Issues

Potential Issues