How do I use Menu with Collapse as my TransitionComponent on Material-ui?Sharepoint navigation menu collapseBootstrap 3 Menu is not collapsing on IpadHow to disable margin-collapsing?How to pass props to this.props.childrenMaterial UI and Grid systemMaterial-ui horizontal menuMaterial-UI side menu?Material UI: drawer with expandable side menuReact Material UI Multiple CollapseTextfield with Autofocus and MenuItem

Why isn't there armor to protect from spells in the Potterverse?

I transpose the source code, you transpose the input!

When did Unix stop storing passwords in clear text?

Kinematic formula for Euler characteristic

One-digit products in a row of numbers

Whaling ship logistics

Is there an equivalent of cash transportation in air cargo?

What in my code changed between MacTeX 2017 and MacTex 2019?

Why is a road bike faster than a city bike with the same effort? How much faster it can be?

Role of "einfach" in a certain context

Why aren't faces sharp in my f/1.8 portraits even though I'm carefully using center-point autofocus?

Is the order of words purely based on convention?

Is population size a parameter, or sample size a statistic?

Read-once memory

Can you trip a breaker from a different circuit?

Do interval ratios take overtones into account or solely the fundamental frequency?

String whitespaces

ZFS inside a virtual machine

Does the app TikTok violate trademark?

what organs or modifications would be needed to have hairy fish?

If a spaceship ran out of fuel somewhere in space between Earth and Mars, does it slowly drift off to the Sun?

Why would an airline put 15 passengers at once on standby?

How deep is the liquid in a half-full hemisphere?

Is a Middle Name a Given Name?



How do I use Menu with Collapse as my TransitionComponent on Material-ui?


Sharepoint navigation menu collapseBootstrap 3 Menu is not collapsing on IpadHow to disable margin-collapsing?How to pass props to this.props.childrenMaterial UI and Grid systemMaterial-ui horizontal menuMaterial-UI side menu?Material UI: drawer with expandable side menuReact Material UI Multiple CollapseTextfield with Autofocus and MenuItem






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I'm having issues using the Collapse component as my TransitionComponent on Material-UI.



Not only does it not work, it also breaks the anchor.



Fade works fine, not sure where to look for answers.



Thanks in advance.



Link to codesandbox



import React, useState, useRef from "react";
import ReactDOM from "react-dom";
import Menu, MenuItem, Collapse, Fade, Typography from "@material-ui/core";

function App()
const [open, toggle] = useState(false);
const ref = useRef(null);

return (
<>
<div style= position: "absolute", top: "50%" ref=ref>
<Typography variant="h4" className="App" onClick=() => toggle(true)>
Click me!
</Typography>
</div>
<Menu
TransitionComponent=Collapse
anchorEl=ref.current
open=open
onClose=() => toggle(false)
>
<MenuItem>Item do menu</MenuItem>
</Menu>
<Menu
TransitionComponent=Fade
transitionDuration=800
anchorEl=ref.current
open=open
onClose=() => toggle(false)
>
<MenuItem>Item do menu</MenuItem>
</Menu>
</>
);


const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);









share|improve this question






























    1















    I'm having issues using the Collapse component as my TransitionComponent on Material-UI.



    Not only does it not work, it also breaks the anchor.



    Fade works fine, not sure where to look for answers.



    Thanks in advance.



    Link to codesandbox



    import React, useState, useRef from "react";
    import ReactDOM from "react-dom";
    import Menu, MenuItem, Collapse, Fade, Typography from "@material-ui/core";

    function App()
    const [open, toggle] = useState(false);
    const ref = useRef(null);

    return (
    <>
    <div style= position: "absolute", top: "50%" ref=ref>
    <Typography variant="h4" className="App" onClick=() => toggle(true)>
    Click me!
    </Typography>
    </div>
    <Menu
    TransitionComponent=Collapse
    anchorEl=ref.current
    open=open
    onClose=() => toggle(false)
    >
    <MenuItem>Item do menu</MenuItem>
    </Menu>
    <Menu
    TransitionComponent=Fade
    transitionDuration=800
    anchorEl=ref.current
    open=open
    onClose=() => toggle(false)
    >
    <MenuItem>Item do menu</MenuItem>
    </Menu>
    </>
    );


    const rootElement = document.getElementById("root");
    ReactDOM.render(<App />, rootElement);









    share|improve this question


























      1












      1








      1








      I'm having issues using the Collapse component as my TransitionComponent on Material-UI.



      Not only does it not work, it also breaks the anchor.



      Fade works fine, not sure where to look for answers.



      Thanks in advance.



      Link to codesandbox



      import React, useState, useRef from "react";
      import ReactDOM from "react-dom";
      import Menu, MenuItem, Collapse, Fade, Typography from "@material-ui/core";

      function App()
      const [open, toggle] = useState(false);
      const ref = useRef(null);

      return (
      <>
      <div style= position: "absolute", top: "50%" ref=ref>
      <Typography variant="h4" className="App" onClick=() => toggle(true)>
      Click me!
      </Typography>
      </div>
      <Menu
      TransitionComponent=Collapse
      anchorEl=ref.current
      open=open
      onClose=() => toggle(false)
      >
      <MenuItem>Item do menu</MenuItem>
      </Menu>
      <Menu
      TransitionComponent=Fade
      transitionDuration=800
      anchorEl=ref.current
      open=open
      onClose=() => toggle(false)
      >
      <MenuItem>Item do menu</MenuItem>
      </Menu>
      </>
      );


      const rootElement = document.getElementById("root");
      ReactDOM.render(<App />, rootElement);









      share|improve this question














      I'm having issues using the Collapse component as my TransitionComponent on Material-UI.



      Not only does it not work, it also breaks the anchor.



      Fade works fine, not sure where to look for answers.



      Thanks in advance.



      Link to codesandbox



      import React, useState, useRef from "react";
      import ReactDOM from "react-dom";
      import Menu, MenuItem, Collapse, Fade, Typography from "@material-ui/core";

      function App()
      const [open, toggle] = useState(false);
      const ref = useRef(null);

      return (
      <>
      <div style= position: "absolute", top: "50%" ref=ref>
      <Typography variant="h4" className="App" onClick=() => toggle(true)>
      Click me!
      </Typography>
      </div>
      <Menu
      TransitionComponent=Collapse
      anchorEl=ref.current
      open=open
      onClose=() => toggle(false)
      >
      <MenuItem>Item do menu</MenuItem>
      </Menu>
      <Menu
      TransitionComponent=Fade
      transitionDuration=800
      anchorEl=ref.current
      open=open
      onClose=() => toggle(false)
      >
      <MenuItem>Item do menu</MenuItem>
      </Menu>
      </>
      );


      const rootElement = document.getElementById("root");
      ReactDOM.render(<App />, rootElement);






      reactjs menu material-ui transition collapse






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 28 at 19:02









      GrokkuGrokku

      1101 gold badge1 silver badge5 bronze badges




      1101 gold badge1 silver badge5 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          2
















          This is a known bug with the Collapse transition in combination with the Popover component (which is used by Menu): https://github.com/mui-org/material-ui/issues/11337






          share|improve this answer

























          • @Grokku If this issue is important to you, I recommend that you give it a thumbs-up/+1 in GitHub since the popularity of issues does have an impact on their prioritization.

            – Ryan Cogswell
            Mar 29 at 14:22











          • Thanks, I will follow that advice. That issue is somewhat important to me. I tried looking for something related on my own without success. Thanks for your help. Cheers.

            – Grokku
            Mar 29 at 19:27













          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55405092%2fhow-do-i-use-menu-with-collapse-as-my-transitioncomponent-on-material-ui%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2
















          This is a known bug with the Collapse transition in combination with the Popover component (which is used by Menu): https://github.com/mui-org/material-ui/issues/11337






          share|improve this answer

























          • @Grokku If this issue is important to you, I recommend that you give it a thumbs-up/+1 in GitHub since the popularity of issues does have an impact on their prioritization.

            – Ryan Cogswell
            Mar 29 at 14:22











          • Thanks, I will follow that advice. That issue is somewhat important to me. I tried looking for something related on my own without success. Thanks for your help. Cheers.

            – Grokku
            Mar 29 at 19:27















          2
















          This is a known bug with the Collapse transition in combination with the Popover component (which is used by Menu): https://github.com/mui-org/material-ui/issues/11337






          share|improve this answer

























          • @Grokku If this issue is important to you, I recommend that you give it a thumbs-up/+1 in GitHub since the popularity of issues does have an impact on their prioritization.

            – Ryan Cogswell
            Mar 29 at 14:22











          • Thanks, I will follow that advice. That issue is somewhat important to me. I tried looking for something related on my own without success. Thanks for your help. Cheers.

            – Grokku
            Mar 29 at 19:27













          2














          2










          2









          This is a known bug with the Collapse transition in combination with the Popover component (which is used by Menu): https://github.com/mui-org/material-ui/issues/11337






          share|improve this answer













          This is a known bug with the Collapse transition in combination with the Popover component (which is used by Menu): https://github.com/mui-org/material-ui/issues/11337







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 28 at 23:39









          Ryan CogswellRyan Cogswell

          11.6k1 gold badge18 silver badges35 bronze badges




          11.6k1 gold badge18 silver badges35 bronze badges















          • @Grokku If this issue is important to you, I recommend that you give it a thumbs-up/+1 in GitHub since the popularity of issues does have an impact on their prioritization.

            – Ryan Cogswell
            Mar 29 at 14:22











          • Thanks, I will follow that advice. That issue is somewhat important to me. I tried looking for something related on my own without success. Thanks for your help. Cheers.

            – Grokku
            Mar 29 at 19:27

















          • @Grokku If this issue is important to you, I recommend that you give it a thumbs-up/+1 in GitHub since the popularity of issues does have an impact on their prioritization.

            – Ryan Cogswell
            Mar 29 at 14:22











          • Thanks, I will follow that advice. That issue is somewhat important to me. I tried looking for something related on my own without success. Thanks for your help. Cheers.

            – Grokku
            Mar 29 at 19:27
















          @Grokku If this issue is important to you, I recommend that you give it a thumbs-up/+1 in GitHub since the popularity of issues does have an impact on their prioritization.

          – Ryan Cogswell
          Mar 29 at 14:22





          @Grokku If this issue is important to you, I recommend that you give it a thumbs-up/+1 in GitHub since the popularity of issues does have an impact on their prioritization.

          – Ryan Cogswell
          Mar 29 at 14:22













          Thanks, I will follow that advice. That issue is somewhat important to me. I tried looking for something related on my own without success. Thanks for your help. Cheers.

          – Grokku
          Mar 29 at 19:27





          Thanks, I will follow that advice. That issue is somewhat important to me. I tried looking for something related on my own without success. Thanks for your help. Cheers.

          – Grokku
          Mar 29 at 19:27


















          draft saved

          draft discarded















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55405092%2fhow-do-i-use-menu-with-collapse-as-my-transitioncomponent-on-material-ui%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해