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

FranBran picture FranBran  路  3Comments

anthony-dandrea picture anthony-dandrea  路  3Comments

ryanflorence picture ryanflorence  路  3Comments

pola88 picture pola88  路  3Comments

reflog picture reflog  路  3Comments