The Welkin Suite Forum

Lightning Components are getting messed up with lowercase attributes automatically



Lightning Components are getting messed up with lowercase attributes automatically

  • Please log in to reply

#1

varunchaddha

    Posted 25 Jun 2016

    This is stopping me to use the editor reliably for Lightning Components.


    Either the Pull from Salesforce or Saving to Salesforce is making "attributes" of Lightning Components all lowercase. Thus for example, a render tag like:



    <aura:renderif istrue="{! (!v.isRunning)}">


    </aura:render>


    does not evaluate at all, and no errors because "isTrue" was automatciually converted into "istrue" - lowercase.


    After spending a lot of time I was able to figure out what was happening here. This has happened to me before as well, and any SVG image was not showing up due to the editor messing up attribute and element tag Text Case to lowercase.


    Ideally, I would leave it for developer to provide UpperCase or LowerCase or CamelCase text in his programming way. 


    ... aura:renderif ...


    I would type this as ... aura:renderIf .. with capital I, but editor reverts it back to lowercase.


    I hope someone will look into it :-) ...



    1 replies to this topic

    #2

    kate.dulko

      Posted 29 Jun 2016

      Hi,


      Thank you for your bug report.

      This is known issue for us.

      Our developers will work this in one of the nearest sprints.


      As a workaround, please disable the 'Format on paste' option. You can find this on the following way: Main Menu -> Tools -> Options -> Text Editor -> HTML -> Advanced. There you will see the 'Paste' section with the 'Format on paste' option. Please change its value to the 'False'.


      I kindly ask you to let us know if this workaround solves the issue for you.


      Thank you,

      Kate


      Kate Dulko
      Customer Relations

      The Welkin Suite

      twitter: @KateDulko
      skype id: d_katerina
      e-mail: kate.dulko@welkinsuite.com

       

        





      Boost Your Productivity. Get Started Today

      Try Free Trial