Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Conversation

@LouisEugeneMSFT
Copy link
Contributor

Description

The problem explained in #4947 initially stems from a SDK issue and was filled here: https://github.com/microsoft/botbuilder-dotnet/issues/5012. However that issue highlighted an incorrect handling of focus for Intellisense fields, which is what this PR is tackling.

In order to keep the focus on a field after clicking on a suggestion from Intellisense, setFieldFocused was called after a value change (SchemaField.tsx line 54). But an other piece of code was responsible for initially setting default values when those are provided (effect line 57). Therefore focus was set when it shouldn't (when the fields were mounted and defaults were set). This PR addresses this issue by managing focus in a better way. Additionally, a new functionality was added to place the cursor where we would expect it to be after injecting a suggestion from Intellisense (previous behavior was to put cursor at the end)

Task Item

fix #4947

Screenshots

image
image

@coveralls
Copy link

coveralls commented Dec 2, 2020

Coverage Status

Coverage decreased (-0.02%) to 55.286% when pulling 80ede68 on leugene/issue4947 into 6ff23ce on main.

@LouisEugeneMSFT LouisEugeneMSFT merged commit 0cc775d into main Dec 2, 2020
@LouisEugeneMSFT LouisEugeneMSFT deleted the leugene/issue4947 branch December 2, 2020 02:38
boydc2014 pushed a commit that referenced this pull request Dec 2, 2020
* try-catch around trigger grouping expressions (#5017)

Co-authored-by: Ben Yackley <[email protected]>

* chore: Updated installOneAuth script to target correct version. (#5020)

* Updated installOneAuth script to target correct version.

* Better refactor

* feat: adaptive expression functions menu (#5015)

* expressions menu

* Fixing aligment of menu

* PR comments

Co-authored-by: Soroush <[email protected]>

* fix: Correct handling of focus for Intellisense fields (#5039)

* fix

* Improved handling of focus when leveraging an Intellisense suggestion

* comments on wrong lines

* feat: azure publish with orchestrator (#5011)

* refactor the luis build in azure publish

* update the orchestrator path

* update the cleanup

* fix typo

* catch the build error

* remove qna endpoint

* remove console

* add qnaconfig

Co-authored-by: Geoff Cox (Microsoft) <[email protected]>
Co-authored-by: Ben Yackley <[email protected]>
Co-authored-by: Tony Anziano <[email protected]>
Co-authored-by: LouisEugeneMSFT <[email protected]>
Co-authored-by: Soroush <[email protected]>
Co-authored-by: leileizhang <[email protected]>
boydc2014 pushed a commit that referenced this pull request Dec 2, 2020
* try-catch around trigger grouping expressions (#5017)

Co-authored-by: Ben Yackley <[email protected]>

* chore: Updated installOneAuth script to target correct version. (#5020)

* Updated installOneAuth script to target correct version.

* Better refactor

* feat: adaptive expression functions menu (#5015)

* expressions menu

* Fixing aligment of menu

* PR comments

Co-authored-by: Soroush <[email protected]>

* fix: Correct handling of focus for Intellisense fields (#5039)

* fix

* Improved handling of focus when leveraging an Intellisense suggestion

* comments on wrong lines

* feat: azure publish with orchestrator (#5011)

* refactor the luis build in azure publish

* update the orchestrator path

* update the cleanup

* fix typo

* catch the build error

* remove qna endpoint

* remove console

* add qnaconfig

Co-authored-by: Geoff Cox (Microsoft) <[email protected]>
Co-authored-by: Ben Yackley <[email protected]>
Co-authored-by: Tony Anziano <[email protected]>
Co-authored-by: LouisEugeneMSFT <[email protected]>
Co-authored-by: Soroush <[email protected]>
Co-authored-by: leileizhang <[email protected]>
boydc2014 pushed a commit that referenced this pull request Dec 2, 2020
* try-catch around trigger grouping expressions (#5017)

Co-authored-by: Ben Yackley <[email protected]>

* chore: Updated installOneAuth script to target correct version. (#5020)

* Updated installOneAuth script to target correct version.

* Better refactor

* feat: adaptive expression functions menu (#5015)

* expressions menu

* Fixing aligment of menu

* PR comments

Co-authored-by: Soroush <[email protected]>

* fix: Correct handling of focus for Intellisense fields (#5039)

* fix

* Improved handling of focus when leveraging an Intellisense suggestion

* comments on wrong lines

* feat: azure publish with orchestrator (#5011)

* refactor the luis build in azure publish

* update the orchestrator path

* update the cleanup

* fix typo

* catch the build error

* remove qna endpoint

* remove console

* add qnaconfig

Co-authored-by: Geoff Cox (Microsoft) <[email protected]>
Co-authored-by: Ben Yackley <[email protected]>
Co-authored-by: Tony Anziano <[email protected]>
Co-authored-by: LouisEugeneMSFT <[email protected]>
Co-authored-by: Soroush <[email protected]>
Co-authored-by: leileizhang <[email protected]>
benbrown pushed a commit to benbrown/BotFramework-Composer that referenced this pull request May 24, 2021
* try-catch around trigger grouping expressions (microsoft#5017)

Co-authored-by: Ben Yackley <[email protected]>

* chore: Updated installOneAuth script to target correct version. (microsoft#5020)

* Updated installOneAuth script to target correct version.

* Better refactor

* feat: adaptive expression functions menu (microsoft#5015)

* expressions menu

* Fixing aligment of menu

* PR comments

Co-authored-by: Soroush <[email protected]>

* fix: Correct handling of focus for Intellisense fields (microsoft#5039)

* fix

* Improved handling of focus when leveraging an Intellisense suggestion

* comments on wrong lines

* feat: azure publish with orchestrator (microsoft#5011)

* refactor the luis build in azure publish

* update the orchestrator path

* update the cleanup

* fix typo

* catch the build error

* remove qna endpoint

* remove console

* add qnaconfig

Co-authored-by: Geoff Cox (Microsoft) <[email protected]>
Co-authored-by: Ben Yackley <[email protected]>
Co-authored-by: Tony Anziano <[email protected]>
Co-authored-by: LouisEugeneMSFT <[email protected]>
Co-authored-by: Soroush <[email protected]>
Co-authored-by: leileizhang <[email protected]>
benbrown pushed a commit to benbrown/BotFramework-Composer that referenced this pull request May 24, 2021
* try-catch around trigger grouping expressions (microsoft#5017)

Co-authored-by: Ben Yackley <[email protected]>

* chore: Updated installOneAuth script to target correct version. (microsoft#5020)

* Updated installOneAuth script to target correct version.

* Better refactor

* feat: adaptive expression functions menu (microsoft#5015)

* expressions menu

* Fixing aligment of menu

* PR comments

Co-authored-by: Soroush <[email protected]>

* fix: Correct handling of focus for Intellisense fields (microsoft#5039)

* fix

* Improved handling of focus when leveraging an Intellisense suggestion

* comments on wrong lines

* feat: azure publish with orchestrator (microsoft#5011)

* refactor the luis build in azure publish

* update the orchestrator path

* update the cleanup

* fix typo

* catch the build error

* remove qna endpoint

* remove console

* add qnaconfig

Co-authored-by: Geoff Cox (Microsoft) <[email protected]>
Co-authored-by: Ben Yackley <[email protected]>
Co-authored-by: Tony Anziano <[email protected]>
Co-authored-by: LouisEugeneMSFT <[email protected]>
Co-authored-by: Soroush <[email protected]>
Co-authored-by: leileizhang <[email protected]>
benbrown pushed a commit to benbrown/BotFramework-Composer that referenced this pull request May 24, 2021
* try-catch around trigger grouping expressions (microsoft#5017)

Co-authored-by: Ben Yackley <[email protected]>

* chore: Updated installOneAuth script to target correct version. (microsoft#5020)

* Updated installOneAuth script to target correct version.

* Better refactor

* feat: adaptive expression functions menu (microsoft#5015)

* expressions menu

* Fixing aligment of menu

* PR comments

Co-authored-by: Soroush <[email protected]>

* fix: Correct handling of focus for Intellisense fields (microsoft#5039)

* fix

* Improved handling of focus when leveraging an Intellisense suggestion

* comments on wrong lines

* feat: azure publish with orchestrator (microsoft#5011)

* refactor the luis build in azure publish

* update the orchestrator path

* update the cleanup

* fix typo

* catch the build error

* remove qna endpoint

* remove console

* add qnaconfig

Co-authored-by: Geoff Cox (Microsoft) <[email protected]>
Co-authored-by: Ben Yackley <[email protected]>
Co-authored-by: Tony Anziano <[email protected]>
Co-authored-by: LouisEugeneMSFT <[email protected]>
Co-authored-by: Soroush <[email protected]>
Co-authored-by: leileizhang <[email protected]>
benbrown pushed a commit that referenced this pull request Jun 11, 2021
* try-catch around trigger grouping expressions (#5017)

Co-authored-by: Ben Yackley <[email protected]>

* chore: Updated installOneAuth script to target correct version. (#5020)

* Updated installOneAuth script to target correct version.

* Better refactor

* feat: adaptive expression functions menu (#5015)

* expressions menu

* Fixing aligment of menu

* PR comments

Co-authored-by: Soroush <[email protected]>

* fix: Correct handling of focus for Intellisense fields (#5039)

* fix

* Improved handling of focus when leveraging an Intellisense suggestion

* comments on wrong lines

* feat: azure publish with orchestrator (#5011)

* refactor the luis build in azure publish

* update the orchestrator path

* update the cleanup

* fix typo

* catch the build error

* remove qna endpoint

* remove console

* add qnaconfig

Co-authored-by: Geoff Cox (Microsoft) <[email protected]>
Co-authored-by: Ben Yackley <[email protected]>
Co-authored-by: Tony Anziano <[email protected]>
Co-authored-by: LouisEugeneMSFT <[email protected]>
Co-authored-by: Soroush <[email protected]>
Co-authored-by: leileizhang <[email protected]>
benbrown pushed a commit that referenced this pull request Jun 11, 2021
* try-catch around trigger grouping expressions (#5017)

Co-authored-by: Ben Yackley <[email protected]>

* chore: Updated installOneAuth script to target correct version. (#5020)

* Updated installOneAuth script to target correct version.

* Better refactor

* feat: adaptive expression functions menu (#5015)

* expressions menu

* Fixing aligment of menu

* PR comments

Co-authored-by: Soroush <[email protected]>

* fix: Correct handling of focus for Intellisense fields (#5039)

* fix

* Improved handling of focus when leveraging an Intellisense suggestion

* comments on wrong lines

* feat: azure publish with orchestrator (#5011)

* refactor the luis build in azure publish

* update the orchestrator path

* update the cleanup

* fix typo

* catch the build error

* remove qna endpoint

* remove console

* add qnaconfig

Co-authored-by: Geoff Cox (Microsoft) <[email protected]>
Co-authored-by: Ben Yackley <[email protected]>
Co-authored-by: Tony Anziano <[email protected]>
Co-authored-by: LouisEugeneMSFT <[email protected]>
Co-authored-by: Soroush <[email protected]>
Co-authored-by: leileizhang <[email protected]>
benbrown pushed a commit that referenced this pull request Jun 11, 2021
* try-catch around trigger grouping expressions (#5017)

Co-authored-by: Ben Yackley <[email protected]>

* chore: Updated installOneAuth script to target correct version. (#5020)

* Updated installOneAuth script to target correct version.

* Better refactor

* feat: adaptive expression functions menu (#5015)

* expressions menu

* Fixing aligment of menu

* PR comments

Co-authored-by: Soroush <[email protected]>

* fix: Correct handling of focus for Intellisense fields (#5039)

* fix

* Improved handling of focus when leveraging an Intellisense suggestion

* comments on wrong lines

* feat: azure publish with orchestrator (#5011)

* refactor the luis build in azure publish

* update the orchestrator path

* update the cleanup

* fix typo

* catch the build error

* remove qna endpoint

* remove console

* add qnaconfig

Co-authored-by: Geoff Cox (Microsoft) <[email protected]>
Co-authored-by: Ben Yackley <[email protected]>
Co-authored-by: Tony Anziano <[email protected]>
Co-authored-by: LouisEugeneMSFT <[email protected]>
Co-authored-by: Soroush <[email protected]>
Co-authored-by: leileizhang <[email protected]>
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
* fix

* Improved handling of focus when leveraging an Intellisense suggestion

* comments on wrong lines
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Form dialog: "Choose" triggers show all expressions in details pane expanded

4 participants