Skip to content

Prevent mat-calendar _focusActiveCell #11023

Closed
@shaniqwa

Description

@shaniqwa

Bug, feature request, or proposal:

add boolean input to allow/prevent this function call.

What is the expected behavior?

When a calendar visibility is toggled, it should not take focus.

What is the current behavior?

When a calendar visibility is toggled, it takes focus. The pages scrolls to the focused calendar.

What are the steps to reproduce?

example here : https://ticketsportal.smartag.us/#/

  • add some tickets.
  • calendar is displayed at bottom. pages scrolls to the calendar (unwanted behaviour)

What is the use-case or motivation for changing an existing behaviour?

I think ability to use calendar without taking focus could be useful in other cases as well, similar to the one in the link.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions