Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: SetFocus() Doesn't Work on Any Creative Kit Controls #400

Closed
sperry1625 opened this issue Sep 7, 2023 · 5 comments
Closed

[BUG]: SetFocus() Doesn't Work on Any Creative Kit Controls #400

sperry1625 opened this issue Sep 7, 2023 · 5 comments
Assignees
Labels
👋 needs author feedback Waiting on a response from the author

Comments

@sperry1625
Copy link

Describe the bug
I get an error when I try to SetFocus() to a CreativeKit control. The control is not in a gallery or in another container. It is grouped with other controls, but a group is not a container.

To Reproduce
Steps to reproduce the behavior:

  1. Drop a picker, panel, or other CreativeKit control on a Screen
  2. Drop a label on the screen
  3. Group the controls from step 1 and step 2 (This is not necessary, but it is what I have done)
  4. Drop a button on the same screen
  5. In the OnSelect() for the button add a SetFocus() to one of the controls added in step 1
  6. See error

Expected behavior
No error and the SetFocus() to work

Screenshots
image

Additional context
This works on any regular controls that are in the same place.

@sperry1625 sperry1625 added bug Something isn't working ⚠️ needs triage Has not been triaged by the team yet. labels Sep 7, 2023
@denise-msft
Copy link
Member

denise-msft commented Sep 21, 2023

Thanks for the great suggestion. SetFocus() requires additional work that was not initially scoped. I will validate whether SetFocus is supported for components.

Were you able to try out the SetFocus implementation provided in docs? https://learn.microsoft.com/en-us/power-platform/guidance/creator-kit/setfocus

@denise-msft denise-msft added 🛠️ enhancement New feature or request and removed bug Something isn't working ⚠️ needs triage Has not been triaged by the team yet. labels Sep 21, 2023
@RajeevPentyala RajeevPentyala added this to the Backlog milestone Nov 17, 2023
@denise-msft denise-msft added 👋 needs author feedback Waiting on a response from the author and removed 🛠️ enhancement New feature or request labels Nov 20, 2023
@denise-msft
Copy link
Member

@sperry1625 just wanted to follow up and check in - did the SetFocus using a variable work for you?

@sperry1625
Copy link
Author

sperry1625 commented Nov 28, 2023

@denise-msft, I have to retest. I believe IO have tried the SetFocus as described and it is not supported in all controls.

I will retest my scenario and let you know.

Regards,

SP

@denise-msft
Copy link
Member

denise-msft commented Feb 7, 2024

@sperry1625 please let us know if this is not working when you have a chance to try it out.

@denise-msft
Copy link
Member

Since we haven’t received a response, we’re closing this case. Please let us know if you need additional help by reopening the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👋 needs author feedback Waiting on a response from the author
Projects
None yet
Development

No branches or pull requests

3 participants