Ticket #6469: 6469.dijit.patch

File 6469.dijit.patch, 0.8 kB (added by haysmark, 6 months ago)

Fixes #6469. Strip option tags of newlines; users usually don't intend for them to be there.

  • form/ComboBox.js

     
    10461046 
    10471047        constructor: function( /*DomNode*/ root){ 
    10481048                this.root = root; 
    1049 /* 
    1050                 //      TODO: this was added in #3858 but unclear why/if it's needed;  doesn't seem to be. 
    1051                 //      If it is needed then can we just hide the select itself instead? 
     1049 
    10521050                dojo.query("> option", root).forEach(function(node){ 
    1053                         node.style.display="none"; 
     1051                        //      TODO: this was added in #3858 but unclear why/if it's needed;  doesn't seem to be. 
     1052                        //      If it is needed then can we just hide the select itself instead? 
     1053                        //node.style.display="none"; 
     1054                        node.innerHTML=node.innerHTML.replace(/\n/gm, ""); 
    10541055                }); 
    1055 */ 
     1056 
    10561057        }, 
    10571058 
    10581059        getValue: function(     /* item */ item,