Skip to content

HTML warning from DefaultFilters.jsx: <div> cannot appear as a descendant of <p> #548

@earthlingdavey

Description

@earthlingdavey

Describe the bug

I am seeing the following warning in my browser console.

Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>.

In src/components/DefaultFilters.jsx , the html structure is p > div.

Perhaps this should be changed to Flex > FlexItem structure.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '/admin.php?page=simple_history_admin_menu_page'
  2. Open browser console
  3. See warning

Expected behavior
This warning should not be shown, and the html should be valid.

System information (please complete the following information):
NA

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions