question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Transition is "appearing" by default and the documentation says that it is false as default

See original GitHub issue
  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

When using the component Transition, the content “appears” instead of having the default behavior of not appearing on the first mount.

Expected Behavior 🤔

The component should not appear on the first mount, as stated on the documentation.

Steps to Reproduce 🕹

Steps:

  1. Use any Transition component without “appear” property.

https://codesandbox.io/s/nice-hooks-fpi84?file=/src/Demo.js

Context 🔦

Your Environment 🌎

Tech Version
Material-UI v4.11.0
React 16.13.1
Browser Google Chrome 84.0.4147.125 (Official Build) (64-bit)
TypeScript 3.9.7

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
eps1loncommented, Aug 14, 2020

Maybe we could have a new prop disableAppear to have the default as false and avoid the change of behavior.

I think we can make an argument the documenting appear as a default implies that <Grow appear={undefined} /> leads to <Transition appear={true} />. Let’s just call it a bug (appear should default to true; previously omitting appear was treated differently than setting appear to undefined) and schedule it for v5 to reduce risk of unwanted breakage.

1reaction
GuilleDFcommented, Oct 23, 2020

Hi! I can take this if it’s okay! 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Transition is "appearing" by default and the documentation ...
Transition is "appearing" by default and the documentation says that it is false as default #22162 ; Current Behavior ; Expected Behavior.
Read more >
Transition Between Operating Modes - MATLAB & Simulink
A default transition is a special type of transition that has no source. In charts or states with exclusive (OR) decomposition and at...
Read more >
React Transition Group
By default the Transition component does not alter the behavior of the component it renders, it only tracks "enter" and "exit" states for...
Read more >
Add, change, or remove transitions between slides
Select the slide that has the transition you want to modify. · On the Transitions tab, select Effect Options, then choose an option...
Read more >
transition - CSS: Cascading Style Sheets - MDN Web Docs
Transitions enable you to define the transition between two states of an element. Different states may be defined using pseudo-classes like ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found