question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot navigate to if/else steps from form editor when IfCondition is focused

See original GitHub issue

This has to do with the way we are treating the IfCondition in the visual designer. Clicking on the diamond only “focuses” the form but does not “nav” to the subtree. This results in the state:

{
  navPath: 'SomeDialog#',
  focusPath: 'SomeDialog#steps[0]'
}

When trying to focus again to SomeDialog#steps[0].steps[0] the shell does not do it because it thinks that the editor is trying to focus something that is already focused. (https://github.com/Microsoft/BotFramework-Composer/blob/master/Composer/packages/client/src/store/reducer/index.js#L108)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cwhittencommented, May 21, 2019

I’m of the opinion that a deep diff comparison is the better approach.

0reactions
yeze322commented, May 21, 2019

two questions @yeze322:

  1. why timestamps helps on this issue?
  2. i think focusId can be generated with focusPath, right?

To 2, yes, focusId == focusPath, correct my comments above. To 1, maybe deep diff is a better solution?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ifelse - Amazon QuickSight - AWS Documentation
ifelse evaluates a set of if, then expression pairings, and returns the value of the then argument for the first if argument that...
Read more >
Focus Next Element In Tab Index - javascript - Stack Overflow
The tab order of elements in a document is controlled by the tabindex attribute. If no value is set, the tabindex is effectively...
Read more >
Making decisions in your code — conditionals - MDN Web Docs
Basic if...else syntax looks like this: if (condition) { /* code to run if condition is true */ } else { /* run...
Read more >
If...Then...Else statement (VBA) - Microsoft Learn
Conditionally executes a group of statements, depending on the value of an expression. Syntax. If condition Then [ statements ] [ Else ...
Read more >
Focusing: focus/blur - The Modern JavaScript Tutorial
The blur handler checks if the field has an email entered, and if not ... For instance, we can't put onfocus on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found