¿Cómo mostrar/ocultar dinámicamente los botones de flecha en <input type="number"> con Lit ?
Aquí hay una solución sobre cómo hacer esta tarea de forma estática (https://www.w3schools.com/howto/howto_css_hide_arrow_number.asp ):
/* Chrome, Safari, Edge, Opera */ input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } /* Firefox */ input[type=number] { -moz-appearance: textfield; }Necesito usar una propiedad y, según su valor, mostrar u ocultar los botones de flecha. El siguiente enfoque no funciona en combinación con una clase:
@property({ type: Boolean }) hideNumberArrows = false <input class="${this.hideNumberArrows ? 'my-class-name' : ''}" /> input.my-class-name::-webkit-outer-spin-button input.my-class-name::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }¿Alguna sugerencia?