primefaces / primeui

Rich set of javascript-css only widgets
http://www.primefaces.org/primeui
283 stars 125 forks source link

Bug on button methods (enable and disable) #164

Closed ograndebe closed 8 years ago

ograndebe commented 8 years ago

The methods enable and disable on puibutton not working properly

I fixed it on my project ` disable: function() { this._unbindEvents(); this.element.prop('disabled',true); this.element.addClass('ui-state-disabled'); },

    enable: function() {
        if(this.element.prop('disabled')) {
            this._bindEvents();           
            this.element.prop('disabled', false).removeClass('ui-state-disabled');
        }
    },

`

cagataycivici commented 8 years ago

Fixed for 3.0.2