Merge pull request #4113 from Steve-Mcl/select-deep-linked-item

Select the item that is specified in a deep link URL
This commit is contained in:
Nick O'Leary 2023-05-22 16:48:00 +01:00 committed by GitHub
commit ce6a4845f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -263,6 +263,7 @@ var RED = (function() {
setTimeout(() => {
RED.view.reveal(nodeToShow.id)
window.location.hash = currentHash
RED.view.select(nodeToShow.id)
if (showEditDialog) {
RED.editor.edit(nodeToShow)
}
@ -273,6 +274,7 @@ var RED = (function() {
if (nodeToShow) {
RED.view.reveal(nodeToShow.id)
window.location.hash = currentHash
RED.view.select({ nodes: [nodeToShow] })
if (showEditDialog) {
RED.editor.editGroup(nodeToShow)
}