cannot navigate to if/else steps from form editor when IfCondition is focused
See original GitHub issueThis 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:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m of the opinion that a deep diff comparison is the better approach.
To 2, yes, focusId == focusPath, correct my comments above. To 1, maybe deep diff is a better solution?