mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
Fix crash when selecting a category preset with enter button
(this happens because the datum() is a constructor not a constructed object, and category presets have state, so calling datum().choose from keypress doesn't work)
This commit is contained in:
@@ -154,6 +154,8 @@ iD.ui.PresetList = function(context) {
|
||||
}
|
||||
|
||||
item.choose = function() {
|
||||
if (!box || !sublist) return;
|
||||
|
||||
if (shown) {
|
||||
shown = false;
|
||||
box.transition()
|
||||
|
||||
Reference in New Issue
Block a user