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

101
Vistas
Received `false` for a non-boolean attribute `closable`

I have this code

import { Modal } from "antd";
import styled from "styled-components";

export const StANTModal = styled(Modal)`
  & .ant-modal-content {
    border-radius: 20px;
    overflow: hidden;
  }
`;

and using like this

 <StANTModal
      visible={showModal}
      footer={false}
      closable={false}
      onCancel={() => setShowModal(false)}
      transitionName="ant-move-down"
      maskTransitionName="ant-move-down"
      width={600}
    >
    // not related code
  </StANTModal>

and I have this log

warning :react-dom.development.js:67 Warning: Received `false` for a non-boolean attribute `visible`.

If you want to write it to the DOM, pass a string instead: visible="false" or visible={value.toString()}.

If you used to conditionally omit it with visible={condition && value}, pass visible={condition ? value : undefined} instead.

It works perfectly but I don't want to see this log in my console.

I am using react with Typescript and ant design.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

This problem is from antd library

about 4 years ago · Juan Pablo Isaza Denunciar
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