mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 05:30:35 +02:00
Clear feature search param and results when changing modes
This commit is contained in:
@@ -39,9 +39,16 @@ iD.ui.FeatureList = function(context) {
|
||||
var list = listWrap.append('div')
|
||||
.attr('class', 'feature-list cf');
|
||||
|
||||
context
|
||||
.on('exit.feature-list', clearSearch);
|
||||
context.map()
|
||||
.on('drawn.feature-list', mapDrawn);
|
||||
|
||||
function clearSearch() {
|
||||
search.property('value', '');
|
||||
drawList();
|
||||
}
|
||||
|
||||
function mapDrawn(e) {
|
||||
if (e.full) {
|
||||
drawList();
|
||||
|
||||
Reference in New Issue
Block a user