-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Improvement] Populate cursor to compose box after chat has been selected #1513
Comments
@aliabbasmalik8 Thank you for the proposal. Could you please give a little more detail on why you found the text box is not getting focused in the first place? I'm pretty sure this is a regression from previous versions. Could you also explain how your proposal fixes it? Is the |
@tgolen
when we clicked on other user from the |
OK, thank you for a little more details. In the solution for
Can you link to the code where this blur is happening? I'm not seeing it and just want to double-check. My thought is that we should not be calling |
We need to add on click outside of the |
Hi @tgolen IssueHere the problem is in the Modal rendering. SolutionInside
So it will focus the input correctly. Thanks, |
Hi @SameeraMadushan, Thanks for your proposal. I understand the |
@tgolen Yes. FixIf I render The reason is when we use condition here, It will hide the modal without waiting for the animation to close the modal. (We need to have isVisible prop also in the modal because it's required for |
Great, thanks for the info. |
@tgolen
But when we clicked some other user rather than an active user that case we can handle We can handle
We can add a sidebar type to handle this case or can create a new state for the modal. NOTE: currently |
@aliabbasmalik8 thank you for this proposal! We would like to proceed with this as a fix. I have sent the contract in Upwork for you to get started. 😊 |
|
Hi, thank you for explaining that second case. I think I understand it. I like the idea for adding a modal state into Onyx, something like
Is this mostly what you had in mind? |
@tgolen |
If you haven’t already, check out our contributing guidelines for onboarding!
Platform - version: Desktop v.435
Action Performed (reproducible steps):
command+k
to access new Right Hand Nav searchExpected Result:
Once user is selected, cursor is selected in the compose box and I should be able to immediately start typing text
Actual Result:
The cursor didn't populate, you need to click the compose box to start typing.
The text was updated successfully, but these errors were encountered: