Material-ui: Badge Warning: Received `true` for a non-boolean attribute `invisible`

Created on 21 Nov 2018  路  2Comments  路  Source: mui-org/material-ui

This is my code:

<Badge color="primary" invisible={chat.notificationsCount === 0} badgeContent={chat.notificationsCount} className={classes.badge}>
  <ListItemText primary={chat.title} className={classes.itemText} />
</Badge>

With chat.notificationsCount equals to 0.

The error I can see in console:

warning.js:33 Warning: Received `true` for a non-boolean attribute `invisible`.

captura de pantalla 2018-11-21 a las 17 36 12

incomplete

Most helpful comment

What version of @material-ui/core are you using? invisible was only added in v3.5.1.

All 2 comments

What version of @material-ui/core are you using? invisible was only added in v3.5.1.

Recommend using 3.5.1 because 3.5.0 has a missing dependency. 13581

Was this page helpful?
0 / 5 - 0 ratings

Related issues

activatedgeek picture activatedgeek  路  3Comments

revskill10 picture revskill10  路  3Comments

mb-copart picture mb-copart  路  3Comments

TimoRuetten picture TimoRuetten  路  3Comments

newoga picture newoga  路  3Comments