JSFiddle - React, Tailwind, and code Playground

HTML

<input type="number" name="number"/>

JavaScript

$(document).ready(function(){

     $(document).find('input[type=number]').live('keydown',function(evt){ 
            if(evt.which == 190){
                $(this).val($(this).val()+",");
                evt.preventDefault();
            }
        });
    
});