Attempting to write a non-valid Title into the Add Template dialog, e.g. #tag, will correctly disable the "add template" button, but pressing enter with the focus in the input will still attempt to add the template. This will fail with a JS error, because it tries to create a mw.Title from null.
Description
Description
Details
Details
Event Timeline
Comment Actions
Change 345385 had a related patch set uploaded (by DLynch):
[mediawiki/extensions/VisualEditor@master] Add template: don't try to add invalid templates when enter is pressed
Comment Actions
Change 345385 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] Add template: don't try to add invalid templates when enter is pressed