angularjs - ng-disabled not applying to inner span -
i have following button:
<button type="submit" ng-disabled="editform.$invalid || vm.issaving" class="btn btn-primary" > <span class="glyphicon glyphicon-save"></span> <span data-translate="entity.action.save" ng-click="send()">save</span> </button> my issue ng-disabled working on first of inner <span>, button becomes disabled (as "glyphicon-save"), text on button not, , "save" text still clickable. why happening, whats fix?
move ng-click <span> <button> , should fine.
<button type="submit" ng-disabled="editform.$invalid || vm.issaving" class="btn btn-primary" ng-click="send()"> <span class="glyphicon glyphicon-save"></span> <span data-translate="entity.action.save">save</span> </button>
Comments
Post a Comment