LT-275: Auto-focusing the search input
This commit is contained in:
parent
690be7492a
commit
24def018f5
@ -45,8 +45,13 @@ Template.selectTree.onRendered(() => {
|
|||||||
})).trigger('spatialChanged');
|
})).trigger('spatialChanged');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start the component transitions
|
Meteor.defer(() => {
|
||||||
Meteor.defer(() => $treeRoot.addClass('started'));
|
// Start the component transitions
|
||||||
|
$treeRoot.addClass('started');
|
||||||
|
|
||||||
|
// Focus the search box
|
||||||
|
$treeRoot.find('.tree-search input').focus();
|
||||||
|
});
|
||||||
|
|
||||||
// Update the component's viewport height
|
// Update the component's viewport height
|
||||||
instance.updateHeight = searchTerm => {
|
instance.updateHeight = searchTerm => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user