Reset Template / No Template options don't always work

Summary

the local options in Issue template dropdown don't work

Steps to reproduce

  • Create new issue
  • Select "No template" from dropdown

What is the current bug behavior?

cannot read 'content' of undefined

Relevant logs and/or screenshots

Screen_Shot_2017-06-22_at_6.56.30_am_copy

Output of checks

This bug happens on GitLab.com

Possible fixes

Design

  • If the user selected a template and didn't edit it, and now selects "no template", it will remove all the contents.

  • If the user selected a template and did edit it, and now selects "no tempalte", it will not remove all the contents.

as for dropdown value and focus:

  • dropdown value: When you click on no template, I think its alright to have it changed to that value instead of “choose a template”

  • focus: can we change the focus to the title if there has been no input for that yet.. if not it focusses the description? If that is not possible, i would rather have the focus change to the description imo

Edited Dec 19, 2017 by Dimitrie Hoekstra
Assignee Loading
Time tracking Loading