Skip to content

[EuiBottomBar] Fixed position shouldn't mount into a portal by default #9242

Open
1 of 1 issue completed
Open

Description

@tonyghiani

📓 Summary

When using the EuiBottomBarcomponent, when position="sticky", the bottom bar is mounted as a normal React node, and it works correctly.

When position is not specified, the default value is fixed.
This would work perfectly fine if it were only applying changes to the CSS layout, as the fixed position doesn't affect the DOM node position.

However, there is an issue here. When position="fixed" (explicitly or by default) the usePortal property starts playing a role. As this is truthy by default, it implicitly applies the behaviour of creating the bar inside a portal, appending the new DOM node at the end of the body tag.

Sometimes, this results in the following error, which crashes the page with an unhandled error:

Image

To prevent this behavior and purely rely on the CSS positioning, usePortal must be explicitly set to false. This guarantees the expected behaviour for the EuiBottomBar component on a fixed positioning.

This implicit behaviour seems dangerous and could lead to unexpected crashes. I wonder if the portal usage should be off by default and if we actually need it to even be there for some reason.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    ⚠️ needs validation
    on Nov 26, 2025
  2. added theissue type on Nov 26, 2025
  3. tonyghiani commented on Nov 27, 2025

    @tonyghiani
    ContributorAuthor

    On a side note, we have a use case in Kibana where the affordForDisplacement solution would work great, but it's only supported with the portal option enabled. Please keep this requirement in mind when looking into this issue, thanks in advance!

  4. removed
    ⚠️ needs validation
    on Dec 2, 2025
  5. JasonStoltz commented on Dec 2, 2025

    @JasonStoltz
    Contributor

    Thank you for adding this issue. We've triaged it to determine priority and next steps:

    • New status: Backlog
    • Prioritization: We have prioritized this work and plan to address it in the near term, but do not yet have a timeline.
    • Next steps: We've queued up an investigation task to dig into this and determine a path forward.
  6. github-actions commented on Jun 1, 2026

    @github-actions

    👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.

  7. added
    stale-issue
    on Jun 1, 2026
  8. removed
    stale-issue
    on Oct 6, 2026
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

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions