From 973e7cb8efb1e007d155cc48f6e42a938ccfe353 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Mon, 8 Jun 2015 14:15:45 -0500 Subject: [PATCH] fix(new-task): Novalidate Adds the "novalidate" flag to the task-add form so browser-level form validations don't act on our field. Fixes #3705. --- website/views/shared/tasks/lists.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/views/shared/tasks/lists.jade b/website/views/shared/tasks/lists.jade index 89e4430d0a..f746992e9a 100644 --- a/website/views/shared/tasks/lists.jade +++ b/website/views/shared/tasks/lists.jade @@ -56,7 +56,7 @@ script(id='templates/habitrpg-tasks.html', type="text/ng-template") .todos-chart(ng-if='::list.type == "todo"', ng-show='charts.todos') // Add New - form.task-add(name='new{{list.type}}form', ng-hide='obj._locked', ng-submit='addTask(obj[list.type+"s"],list)') + form.task-add(name='new{{list.type}}form', ng-hide='obj._locked', ng-submit='addTask(obj[list.type+"s"],list)' novalidate) textarea(rows='6', task-focus='list.bulk && list.focus', ng-model='list.newTask', placeholder='{{list.placeHolderBulk}}', ng-if='list.bulk', ui-keydown='{"meta-enter ctrl-enter":"addTask(obj[list.type+\'s\'],list)"}', required) input(type='text', task-focus='!list.bulk && list.focus', ng-model='list.newTask', placeholder='{{list.placeHolder}}', ng-if='!list.bulk', required) button(type='submit', ng-disabled='new{{list.type}}form.$invalid')