ng-bs-animated-button
ng-bs-animated-button copied to clipboard
Allow empty string as TEXT
Hi,
Currently, settings is set using the || operator... e.g: buttonDefaultText: $scope.options.buttonDefaultText || 'Submit',
This enforce the "Submit" to show even if the user has set the value to an empty string. This is not a behavior the user expects.
It should be: buttonDefaultText: ($scope.options.buttonDefaultText == undefined) ? 'Submit' : $scope.options.buttonDefaultText;
Perhaps adding a null check as well.
Thanks for the feedback - I'll get this done the same time as #1