8000 Warning: Invalid place prop in Popover causes React DOM warning · Issue #9192 · outline/outline · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Warning: Invalid place prop in Popover causes React DOM warning #9192
Closed
@nadia-ben-njima

Description

@nadia-ben-njima

Is there an existing issue for this?

  • I have searched the existing issues

This is not related to configuring Outline

  • The issue is not related to self-hosting config

Current Behavior

When rendering the Popover component, the following React warning appears in the console:

Warning: Invalid value for prop place on

tag. Either remove it from the element, or pass a string or number value to keep it in the DOM.

This is due to the place prop (coming from the Popover API or internal logic) being spread onto a native

, which does not accept this attribute.

Expected Behavior

There should be no invalid props passed to native DOM elements. The place prop should be filtered out or handled properly before reaching the rendered DOM.

Steps To Reproduce

Click "New document" to start creating a new doc.

Open the browser console.

Observe the warning about the place prop on a

element.

Environment

- Outline:latest
- Browser:Firefox 125

Anything else?

The warning is related to the Popover component. A fix has been made locally by filtering out the invalid place prop before it reaches the DOM.
A pull request has been submitted to address this issue: #9191

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0