Skip to content

bug(CalendarComponent): div not allowed as child element of button #26825

Closed
@Inera23

Description

@Inera23

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

Skärmavbild 2023-03-23 kl  13 30 18

The calendar element has a div element as a child of button element. which is break the html validation rules.

Block elements are not allowed inside inline elements. In this case, the button and img tags are inline elements while div, h3 and p tags are block elements. So, it's still invalid.

Reproduction

Steps to reproduce:
1.
2.

Expected Behavior

Calendar element should not has a div element inside a button element.

Actual Behavior

Calendar element has a div element inside a button element.

Environment

  • Angular:
  • CDK/Material:
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsarea: material/datepicker

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions