diff --git a/src/struudel/static/js/polls-edit.js b/src/struudel/static/js/polls-edit.js index d990a58..b4112a7 100644 --- a/src/struudel/static/js/polls-edit.js +++ b/src/struudel/static/js/polls-edit.js @@ -64,7 +64,8 @@ function optionsEditor(initial) { }); }, add() { - this.options.push(mk()); + const above = this.options[this.options.length - 1]; + this.options.push(mk(above ? { type: above.type } : null)); }, remove(i) { this.options.splice(i, 1);