Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

datepicker: filter only affects validation in month mode #11525

@AndriSig

Description

@AndriSig

Bug, enhancement request, or proposal:

Bug or enhancement i suppose.

CodePen and steps to reproduce the issue:

CodePen Demo which demonstrates the issue:

Detailed Reproduction Steps:

  1. Make a datepicker
  2. Set it to month mode
  3. Try to filter it.

What is the expected behavior?

Filtered months become disabled

What is the current behavior?

Filtered months just register as error states when selected

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

You have a sparse dataset of dates you want your users to select from.

Them needing to use trial and error to figure out which months are selectable by trying every one makes this feature useless for any case where not every single month is selectable.

Which versions of AngularJS, Material, OS, and browsers are affected?

  • AngularJS: I've tried it on 1.5.11 and the one you guys are running on your demos.
  • AngularJS Material: 1.1.^6
  • OS: Any i'd guess
  • Browsers: At least chrome

Is there anything else we should know? Stack Traces, Screenshots, etc.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions