toggleClass requires actual booleans

pull/4384/head
Oliver Günther 9 years ago
parent 10877ecd37
commit 4cc339eb48
  1. 2
      frontend/app/components/wp-edit/wp-edit-field/wp-edit-field.directive.ts

@ -116,7 +116,7 @@ export class WorkPackageEditFieldController {
public set editable(enabled:boolean) {
this._editable = enabled;
this.$element.toggleClass('-editable', enabled);
this.$element.toggleClass('-editable', !!enabled);
}
public shouldFocus() {

Loading…
Cancel
Save