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');
|
||||
}
|
||||
|
||||
// Start the component transitions
|
||||
Meteor.defer(() => $treeRoot.addClass('started'));
|
||||
Meteor.defer(() => {
|
||||
// Start the component transitions
|
||||
$treeRoot.addClass('started');
|
||||
|
||||
// Focus the search box
|
||||
$treeRoot.find('.tree-search input').focus();
|
||||
});
|
||||
|
||||
// Update the component's viewport height
|
||||
instance.updateHeight = searchTerm => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user