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

440
Vistas
Material Ui MobileDatePicker renderInput got an typescript error

I use "MobileDatePicker" from Material Ui. Here in renderInput props I used a div, instead of ,

                    <MobileDatePicker
                        label="For mobile"
                        value={value}
                        onChange={(newValue) => {
                            setValue(newValue);
                        }}
                        renderInput={(params) => <div ref={params.inputRef} {...params.inputProps}>
                                <svg>
                           {...svg element}
                                </svg>
                            </div>
                            }
                        />

But here i got an error from typescript. Error comming from <div>, inside renderInput.

Type '{ children: never[]; defaultChecked?: boolean | undefined; defaultValue?: string | number | readonly string[] | undefined; suppressContentEditableWarning?: boolean | undefined; suppressHydrationWarning?: boolean | undefined; ... 249 more ...; ref: Ref<...> | undefined; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  Type '{ children: never[]; defaultChecked?: boolean | undefined; defaultValue?: string | number | readonly string[] | undefined; suppressContentEditableWarning?: boolean | undefined; suppressHydrationWarning?: boolean | undefined; ... 249 more ...; ref: Ref<...> | undefined; }' is not assignable to type 'HTMLAttributes<HTMLDivElement>'.
    Types of property 'onCopy' are incompatible.
      Type 'ClipboardEventHandler<HTMLInputElement | HTMLTextAreaElement> | undefined' is not assignable to type 'ClipboardEventHandler<HTMLDivElement> | undefined'.
        Type 'ClipboardEventHandler<HTMLInputElement | HTMLTextAreaElement>' is not assignable to type 'ClipboardEventHandler<HTMLDivElement>'.
          Type 'HTMLInputElement | HTMLTextAreaElement' is not assignable to type 'HTMLDivElement'.
            Property 'align' is missing in type 'HTMLTextAreaElement' but required in type 'HTMLDivElement'.ts(2322)
lib.dom.d.ts(6192, 5): 'align' is declared here.

Can anybody help me?? Thank you.

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