Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

321
Vistas
Backspace isn't working in the input field in Vue JS (REGEX)
  <vs-input
                  :value="contract.value"
                  :class="isMobileOnly ? 'w-full' : 'w-1/2'"
                  class="mx-auto"
                  type="number"
                  :id="`value-${index}`"
                  onkeydown="
                  return event.keyCode !== 69 && /^-?\d*\.?\d{0}$/.test(this.value)"
                  :placeholder="contract.value === 0 ? undefined : 'Value'"
                  @change="changeValue(index)"
                />

I want the input field to restrict to only one - sign but I can enter 2 - signs. Also, when I input number after the decimal point, I cannot use the backspace key. Backspace works fine when there's no number after decimal point

Backspace key doesn't work after you enter a number after a point

Backspace key doesn't work

I want to be able to enter only one minus sign not 2, in the start only

I want to be able to enter only one minus sign not 2

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda