You found a bug! We've classified it as EXTJSIV-8818 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2007
    Posts
    289
    Vote Rating
    0
    jheid is on a distinguished road

      0  

    Default [4.2 RC] Bug with password field as a grid editor

    [4.2 RC] Bug with password field as a grid editor


    If you change

    { text: 'Company', flex: 1, dataIndex: 'company', editor: 'textfield' },

    to

    { text: 'Company', flex: 1, dataIndex: 'company', editor: { xtype: 'textfield', inputType: 'password' } },

    in examples/neptune-components/app/view/grid/widget/Basic.js

    you will get

    Uncaught TypeError: Cannot read property 'style' of null ext-all.js:18

    The error occurs in this line:

    ip = Ext.Element.parseBox((Ext.util.CSS.getRule('.' + Ext.baseCSSPrefix + 'grid-row-editor .' + Ext.baseCSSPrefix + 'form-' + field.inputType) || Ext.util.CSS.getRule('.' + Ext.baseCSSPrefix + 'form-' + field.inputType)).style.padding);

    So, there are missing CSS styles. It breaks functionality in all themes.

    Quite a showstopper I guess.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,656
    Vote Rating
    436
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    What browser and OS are you using? Just tested the example with Chrome 25 on OSX and it worked without an error.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Ext JS Premium Member
    Join Date
    Apr 2007
    Posts
    289
    Vote Rating
    0
    jheid is on a distinguished road

      0  

    Default


    Did you choose the Neptune theme?

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,656
    Vote Rating
    436
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Quote Originally Posted by jheid View Post
    Did you choose the Neptune theme?
    I see it now, you didn't state that step.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Ext JS Premium Member
    Join Date
    Apr 2007
    Posts
    289
    Vote Rating
    0
    jheid is on a distinguished road

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    I see it now, you didn't state that step.
    Yes, my fault. Sorry.