diff options
author | Dave Arter <davea@mysociety.org> | 2018-02-20 14:31:31 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2018-02-22 11:30:25 +0000 |
commit | c645de916a42b564ff4354524581f1fbfa699b45 (patch) | |
tree | 1d75b500f23b0a2ee7e814751cf5d02cd448e406 /web/js/dashboard.js | |
parent | f06ffadadd673e0b51c47da776c8f99ec2ed7ac7 (diff) |
Preserve category selection when using group UI
When using grouped categories on the new report form, the selected
category was being lost when dragging the pin or clicking elsewhere on
the map. This was causing the asset layers to be hidden as well as the
report extra input to be lost.
I'd assumed that cloning an <option> element that was selected and
adding it to the parent <select> would set the value of that <select>
correctly, but that doesn't seem to be the case. Instead, this commit
explicitly sets the <select>'s value after appending a selected <option>
element.
Diffstat (limited to 'web/js/dashboard.js')
0 files changed, 0 insertions, 0 deletions