Results 1 to 3 of 3

Thread: [6.6.0 classic] Ext.form.field.Combobox validation issue when forceSelection+formBind

    You found a bug! We've classified it as EXTJS-27595 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Jan 2016
    Location
    Brazil
    Posts
    137

    Default [6.6.0 classic] Ext.form.field.Combobox validation issue when forceSelection+formBind

    In a very specific scenario, Ext.form.Panel's buttons with 'formBind' won't be enabled when valid value is chosen to a combo box.

    Scenario:
    - A form panel, with a combo box and buttons
    - The combo box should initially have no selected values
    - The combo box should have 'forceSelection: true', and 'allowBlank: false'
    - The form panel should have at least one of the buttons with 'formBind: true' set

    If you feed an invalid vaue in the combo box's input field, it will trigger its 'validityChange' event. But 'forceSelection' will force it back to empty. The validity state of the combo box will then still read as not valid (as the whole form).

    If then (after choosing that invalid value) you select a valid entry from its dropdown list, the 'validityChange' event won't fire. Queryting the form's or field's 'isValid()' will return true, yet the buttons won't be enabled.

    The way to fix this is ensure the combo box calls 'checkValidityChange(combobox.isValid())', which can be just added to the 'select' event of the combo box, or also just updating the combobox's 'wasValid' during the 'beforeselect' event. The latter approach is applied in the fiddle provided below.

    Here's the fiddle with details to reproduce it, and the above mentioned workaround:


    This issue has been around since at least version 5 series, yet I couldn't find an open thread that clearly refers to this specific issue.
    Object.NET
    Frameworks and Tools for .NET Developers
    --------------------------------------------------
    Ext.NET - Ext JS for ASP.NET - Examples | Twitter
    Bridge.NET - Write C#. Run JavaScript! - Live | Twitter
    --------------------------------------------------

  2. #2
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    569

    Default

    Hello, hope you are doing well.

    We appreciate you bringing this to our notice, we will go ahead and register this in our bug tracker. Please note that the reference number will be attached here for you to track the issue.

    Regards,
    Kumar
    Sencha Support.

  3. #3
    Sencha Staff
    Join Date
    Sep 2017
    Posts
    126

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

Similar Threads

  1. Replies: 1
    Last Post: 29 Jan 2017, 11:21 PM
  2. Replies: 0
    Last Post: 14 Jul 2016, 2:38 AM
  3. Replies: 0
    Last Post: 9 Mar 2011, 12:43 PM
  4. Replies: 5
    Last Post: 15 Jun 2009, 11:42 AM

Tags for this Thread

Posting Permissions

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