Results 1 to 2 of 2

Thread: Modern: floated components need focusOnToFront config which should default to true

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default Modern: floated components need focusOnToFront config which should default to true

    So they should always focus when moved to the front - which happens on show.

    Ext.Dialog erroneously has

    Code:
        afterShow: function () {
            this.callParent();
            if (this.getModal()) {
                this.focus();
            }
        }
    To sort of handle it. But the modal test is bogus. That method should be removed.

    A floated component moving to the top of the stack should always take focus unless the developer actively requests otherwise by setting focusOnToFront: false. This is how Classic does it, and that handles focus management well.

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

    Default

    On the same note, a pointer focus gesture, (mousedown for mouse gestures, or tap for touch gestures) should check if the gesture is inside a floating component.

    If so, then if the target element is focusable, then return and allow the event to do its default.

    If the target is *not* focusable proceed as below:

    *If* the floating component does not *contain focus*, then the floating component should be focused (allowing its *defaultFocus* config to delegate focus to a descendant).

    If the floating component *does* contain focus, the gesture should be preventDefaulted so that focus does not disappear to document.body, triggering a focusleave, and causing Dialogs to hide.

    Is this understood?

Similar Threads

  1. Replies: 0
    Last Post: 1 Nov 2017, 11:37 PM
  2. 6.5.x - Modern, Selectfield "picker: floated" bug
    By fairport in forum Ext JS 6.x Bugs
    Replies: 6
    Last Post: 21 Sep 2017, 9:22 AM
  3. Replies: 3
    Last Post: 10 Jul 2017, 11:17 AM
  4. [OPEN] [6.2.1][modern] Error description floated attribute on Ext.picker.Picker
    By debe78 in forum Sencha Documentation
    Replies: 1
    Last Post: 17 May 2017, 7:34 AM
  5. Replies: 0
    Last Post: 24 Jan 2017, 3:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •