Results 1 to 4 of 4

Thread: [2.0.1] Can't enable text field disabled in config.

  1. #1
    Sencha User
    Join Date
    Apr 2007
    Location
    Yaroslavl, Russia
    Posts
    185

    Default [2.0.1] Can't enable text field disabled in config.

    If text field on a form (with form layout) was disabled in creation config, then you can't correctly enable it with .enable() call. It happens because Field.onEnable() tries to remove "x-item-disabled" class from the div wrapping both field and it's label, while this class is on the input itself.

  2. #2
    Sencha User
    Join Date
    Apr 2007
    Location
    Yaroslavl, Russia
    Posts
    185

    Default

    Additionally:
    Field disabled in config has only input grayed out. Label has normal color. At the same time, if you disable field with disable(), both input and label are gray.

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2015
    Location
    UK
    Posts
    22

    Default Unable to enable field - Ext JS 6 - Modern

    I am in the same boat. I have a NavigationView panel as a login screen. Once the credential fields are used to login successfully, navigation back to the view using php as below, the view reappears but the text/credential fields stay disabled. Only placeHolder present and unable to click on the field and enter text. No cursor appears.
    PHP Code:
    var panel Ext.getCmp('loginPanel');        panel.setActiveItem(0); 

  4. #4
    Sencha User
    Join Date
    Oct 2017
    Location
    Ohio
    Posts
    6

    Default

    I cannot enaple the test field myself. It has been very difficult.

Posting Permissions

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