El siguiente código solo funciona en la vista web, pero no en el navegador mweb
onKeyPress={(e) => { var startPos = e.currentTarget.selectionStart; if (e.which === 32 && startPos == 0) { e.preventDefault(); } } (function() { let inp = document.querySelector('input'); inp.addEventListener('keyup', function(e) { e.target.value = e.target.value.trimStart(); }); })(); <input type="text">Si intenta poner un espacio al comienzo del cuadro de texto, se eliminará. De hecho, cualquier espacio en blanco lo hará.