vaadin / vaadin/framework

Method to make calendar show on PopupDateField

Open
#7,670 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
1.8k
Forks
717
Avg merge
2d 6h
Merged PRs (30d)
3

Description

Originally by stevebor1


There might be times when the calendar popup should be displayed on init and not require the user the explicitly click the button. Also would be good to be able to create a focus listener on the textfield and trigger the calendar to display without the need to explicitly click the button.

Request

#!div style="font-size: 80%"
Code highlighting:
  {{{#!java
PopupDateField datefield  new PopupDateField();
dateField.showCalendar(true);

}}}


Imported from https://dev.vaadin.com/ issue #19852

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the PopupDateField implementation and inspect how its calendar popup is opened and how focus events are handled. Confirm the intended showCalendar behavior from the issue, then check the existing PopupDateField tests or UI test entry points; done means the calendar can open on initialization or from text-field focus without requiring the button.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.