Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3331

Add a convenient way to blur the focus or a component

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 8.0.3
    • Fix Version/s: None
    • Component/s: Components
    • Labels:
      None

      Description

      currently HtmlBasedComponent only supports focussing a component
      calling setFocus(false) has no effect.

      Consider adding a function to programmatically trigger a blur at client side.
      https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/blur

        Activity

        Hide
        cor3000 cor3000 added a comment - - edited

        Workaround
        it is already possible to blur the current focus by sending a simple JS to the client:

        Clients.evalJavaScript("document.activeElement.blur();” );
        
        Show
        cor3000 cor3000 added a comment - - edited Workaround it is already possible to blur the current focus by sending a simple JS to the client: Clients.evalJavaScript("document.activeElement.blur();” );

          People

          • Assignee:
            Unassigned
            Reporter:
            cor3000 cor3000
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: