Don't actually use a form element for the preset form

Form elements have default behavior that we don't want,
such as auto-clicking the first button when pressing return
in a text field.

Fixes #1681
This commit is contained in:
John Firebaugh
2013-08-15 12:44:24 -07:00
parent 548760529c
commit 331174029b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -959,7 +959,7 @@ a:hover .icon.out-link { background-position: -500px -14px;}
overflow: hidden;
}
.inspector-preset form.preset-form {
.inspector-preset .preset-form {
padding: 10px;
margin: 0 10px 20px 10px;
border-radius: 8px;
+2 -2
View File
@@ -72,10 +72,10 @@ iD.ui.preset = function(context) {
var shown = fields.filter(function(field) { return field.shown(); }),
notShown = fields.filter(function(field) { return !field.shown(); });
var $form = selection.selectAll('form')
var $form = selection.selectAll('.preset-form')
.data([0]);
$form.enter().append('form')
$form.enter().append('div')
.attr('class', 'preset-form inspector-inner fillL3');
var $fields = $form.selectAll('.form-field')