You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IconButton, Appbar.Action, TextInput.Icon and FAB crash on a removed 5.x prop value instead of warning #5309
A prop value that 6.x removed, passed from JavaScript or cast past the types, crashes the render with an error that names neither the prop nor the value that replaces it:
IconButton mode="contained" or "contained-tonal": TypeError: Cannot read properties of undefined (reading 'default').
A numeric size on IconButton, Appbar.Action or TextInput.Icon: TypeError: Cannot read properties of undefined (reading 'widths'), from IconButton/utils.ts.
FAB variant="tonalPrimary" or "surface": TypeError: Cannot read properties of undefined (reading 'container').
TypeScript reports each of these values. #5250 is the same problem for Button's removed modes.
Expected behaviour
An unknown mode, size or variant falls back to the default and warns in development, naming the prop and the value that replaces it.
How to reproduce?
Inside PaperProvider, render one of these (JavaScript, or TypeScript with the value cast):
Activity