Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

103
Views
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 answers
Answer question

0

This problem is from antd library

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!