Date selection focus not get removed

3 posts, 0 answers
  1. Vinay
    Vinay avatar
    6 posts
    Member since:
    Dec 2013

    Posted 12 Feb 2014 Link to this post

    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. Kendo UI
    Kendo UI avatar
    322 posts
    Member since:
    Aug 2011

    Posted 17 Feb 2014 in reply to Vinay Link to this post

    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.
  3. Kendo UI is VS 2017 Ready
  4. Kendo UI
    Kendo UI avatar
    322 posts
    Member since:
    Aug 2011

    Posted 17 Feb 2014 Link to this post

    P.S. You can use the following CSS rule to disable focused state shadows:

    .k-calendar .k-state-focused
    {
      box-shadow: none;
    }
Back to Top