Merge pull request #1560 from superbland/disable_empty_label

Don't insert label element until this feature is fully implemented.
This commit is contained in:
Ian Gilman 2018-10-31 09:45:27 -07:00 committed by GitHub
commit 6f54c67bae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,11 +70,11 @@ $.ButtonGroup = function( options ) {
// TODO What if there IS an options.group specified?
if( !options.group ){
this.label = $.makeNeutralElement( "label" );
this.element.style.display = "inline-block";
//this.label = $.makeNeutralElement( "label" );
//TODO: support labels for ButtonGroups
//this.label.innerHTML = this.labelText;
this.element.style.display = "inline-block";
this.element.appendChild( this.label );
//this.element.appendChild( this.label );
for ( i = 0; i < buttons.length; i++ ) {
this.element.appendChild( buttons[ i ].element );
}