ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

ui5-datePicker: Error message does not show up on focusing date picker

Open Ankitadoshi opened this issue 5 years ago • 6 comments

Describe the bug When we have a ui5-datePicker which has error value state, and we set the focus to it programmatically, the date picker is focused but the error message does not show up.

To reproduce Steps to reproduce the behaviour:

  1. Go to https://codesandbox.io/s/ui5-webcomponents-forked-hvewu
  2. In the preview, in datePicker, enter some invalid value 'foo'
  3. Focus out from it and observe that the date picker has error value state
  4. click on the 'Focus DatePicker' button
  5. Observe that the date picker is focused but does not show up the 'invalid entry' error message.

Isolated example https://codesandbox.io/s/ui5-webcomponents-forked-hvewu

Expected behavior The error message 'Invalid entry' should show up when we focus the date picker.

Affected components (if known) ui5-datepicker

Organization: (if applicable) Successfactors

Priority: (optional) (Low, Medium, High or Very High) Medium

Setting priority would indicate the importance of the issue and would help the process of dispatching and processing.

To set the appropriate priority, you need to consider the impact and if the issue:

  • Breaks entire application or system - High and Very High
  • Is accessibility one (Screan Reader, Keyboard Handling) - Medium and High
  • Is functional one and makes a single component unusable - Medium and High
  • Is visual, styling one - Low and Medium

Note: the priority would be re-evaluated by the issue processors, according to the project internal criterias

Business impact: (mandatory for "Very High") The error message will not be visible to users even when the date picker is focused

Ankitadoshi avatar Feb 04 '21 13:02 Ankitadoshi

Please analyze the issue and tell whether this is an Input bug or a DatePicker bug.

vladitasev avatar Feb 08 '21 09:02 vladitasev

Hello @SAP/ui5-webcomponents-topic-rl could you investigate this issue.

The behaviour is discovered for the DatePicker, but is reproducible with the Input. If you programatically call focus() on the Input, the cursor moves to the input field, bot neither the focus outline shows, nor the value state message.

  • Go to https://codesandbox.io/s/ui5-webcomponents-forked-w86jd?file=/index.html (this a slightly changed example - I replaced the ui5-datepicker with ui5-input)
  • Click on the 'Focus DatePicker' button
  • Observe that the input is focused but does not show up the 'invalid entry' error message.

BR, ilhan

ilhan007 avatar Feb 08 '21 09:02 ilhan007

@MapTo0 Should this be fixed on Input level, Marti? What do you think?

vladitasev avatar Feb 08 '21 09:02 vladitasev

Changing the label to notify @SAP/ui5-webcomponents-topic-rl .

tsanislavgatev avatar Feb 11 '21 09:02 tsanislavgatev

Hi,

I'm changing the priority to medium because the issue is not a common use case and is not reproducible every time in a local environment.

Best regards, Martin

Martotko avatar Feb 22 '21 08:02 Martotko

Hi everyone,

This issue is already resolved in master branch and it is released in RC12.

fifoosid avatar Feb 26 '21 10:02 fifoosid