Skip to content

bug: menuInnerEl is undefined in menu when routing back a page #24907

Closed

Description

@KANekT

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • v7.x

Current Behavior

"@ionic/vue": "^6.0.10",

ion-menu.js not sync with core

Expected Behavior

in "@ionic/vue": "6.0.10"
image
const width = this.menuInnerEl.offsetWidth;

in code
https://github.com/ionic-team/ionic-framework/blob/main/core/src/components/menu/menu.tsx#L406
const width = this.menuInnerEl!.offsetWidth; - with !

Steps to Reproduce

npm install
go to
..\node_modules@ionic\core\components\ion-menu.js

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 6.18.1 (C:\Users\KANekT\AppData\Roaming\npm\node_modules@ionic\cli)
Ionic Framework : @ionic/vue 6.0.10

Capacitor:

Capacitor CLI : 3.4.3
@capacitor/android : 3.4.3
@capacitor/core : 3.4.3
@capacitor/ios : 3.4.3

Utility:

cordova-res : not installed globally
native-run : 1.5.0

System:

NodeJS : v16.13.0 (C:\Program Files\nodejs\node.exe)
npm : 8.1.4
OS : Windows 10

Additional Information

No response

Activity

  1. changed the title [-]bug: [/-] [+]bug: not sync vue with Core ?[/+] on Mar 9, 2022
  2. KANekT commented on Mar 9, 2022

    @KANekT
    Author

    await this.loadAnimation();
    why it exec loadAnimation if animated = false ?

  3. liamdebeasi commented on Mar 9, 2022

    @liamdebeasi
    Contributor

    Thanks for the issue. Can you please describe the problem you are running into?

  4. added
    needs: reply
    on Mar 9, 2022
  5. KANekT commented on Mar 10, 2022

    @KANekT
    Author

    @liamdebeasi

    i have ion-menu on page

    then i go to another page where there is no menu

    then i go back

    ion-menu not work - in console "this.menuInnerEl.offsetWidth is undefined"

  6. added and removed
    needs: reply
    on Mar 10, 2022
  7. liamdebeasi commented on Mar 10, 2022

    @liamdebeasi
    Contributor

    Can you please provide a GitHub repo I can use to verify this behavior?

  8. added
    needs: reply
    on Mar 10, 2022
  9. added and removed
    needs: reply
    on Mar 11, 2022
  10. 20 remaining items

  11. KANekT commented on Apr 7, 2023

    @KANekT
    Author
  12. added
    type: bug
    and removed
    type: bug
    on Apr 7, 2023
  13. liamdebeasi commented on Apr 7, 2023

    @liamdebeasi
    Contributor

    Can everyone try the following dev build and let me know if it resolves the issue?

    Angular

    npm install @ionic/[email protected]
    

    React

    npm install @ionic/[email protected] @ionic/[email protected]
    

    Vue

    npm install @ionic/[email protected] @ionic/[email protected]
    
  14. KANekT commented on Apr 7, 2023

    @KANekT
    Author

    how I can use this on v6 ?

  15. liamdebeasi commented on Apr 7, 2023

    @liamdebeasi
    Contributor

    Normally we don't release bug fixes to previous major versions of Ionic, but this is a high impact bug so I'd like to backport this patch to v6.

    Here is a v6 dev build you can try: 6.7.3-dev.11680889549.1f830ade

  16. KANekT commented on Apr 8, 2023

    @KANekT
    Author

    @liamdebeasi yes it fixed error in may application on v6, thanks

  17. liamdebeasi commented on Apr 10, 2023

    @liamdebeasi
    Contributor

    Thanks for the issue. This has been resolved via #27141, and a fix will be available in an upcoming release of Ionic Framework.

  18. ionitron-bot commented on May 10, 2023

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  19. locked and limited conversation to collaborators on May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: coretype: bug

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions