This is a migrated thread and some comments may be shown as answers.

Date selection focus not get removed

2 Answers 555 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Vinay
Top achievements
Rank 2
Vinay asked on 12 Feb 2014, 10:44 AM
Hello Kendo Team,

I'm using kendo date picker widget and setting its value to null or "" at run time.
Date picker widget text value get updated to placeholder but date selection value remain in focus state when I open date picker next time.
I don't want to show date in focus state when I open date picker after setting date picker value to null or "".
As a workaround currently I'm removing k-state-focused class when I'm setting value to null or "".
Here is plunker(http://plnkr.co/edit/67m3WmPM3ahUe9DP7UEa?p=preview) where you can observe this issue.
I just want to know that is this issue in kendo date picker or is there any configuration option I'm missing?


Thanks,
Vinay

2 Answers, 1 is accepted

Sort by
0
Kendo UI
Top achievements
Rank 1
answered on 17 Feb 2014, 07:22 AM
The focused state facilitates keyboard navigation and cannot be disabled via configuration. You can remove it manually, but if the user presses an arrow key while the Caledar popup is open, it will appear again.
0
Kendo UI
Top achievements
Rank 1
answered on 17 Feb 2014, 07:28 AM
P.S. You can use the following CSS rule to disable focused state shadows:

.k-calendar .k-state-focused
{
  box-shadow: none;
}
Tags
Date/Time Pickers
Asked by
Vinay
Top achievements
Rank 2
Answers by
Kendo UI
Top achievements
Rank 1
Share this question
or