Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Modal prompts do not block keyboard input

    We're using SC.showPrompt() to block the user while waiting for a response from a call to the server. Mouse input is blocked, but if the cursor is on a field in a form that sits behind the modal prompt window, and that form has setSaveOnEnter(true), pressing Enter tries to save the form data while the "modal" prompt is still showing.

    #2
    In theory focus should be taken from the focused form item when the prompt is shown (and restored when the prompt is dismissed).

    This is working in our simple test case.
    Any chance you could show us some sample code that demonstrates the issue?

    Troubleshootingwise, do you have anything like a call to explicitly focus in the item after showing the prompt?

    Comment


      #3
      Yep. That was it. We had some errant code that set focus before the prompt was dismissed. Thanks.

      Comment

      Working...
      X