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

Mobile Keyboard: typed text is empty, but "length of (typed text)" returns 9 somehow #1765

Open
ffghdfh opened this issue Nov 27, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@ffghdfh
Copy link

ffghdfh commented Nov 27, 2024

I'm trying to make a custom text box for myself.
I used the following script:
block_11_27_2024-8_04_27 AM
As you can see, I absolutely make sure that the text box is completely empty before I do any actions on it.
And yet, when this script runs, the text shows "undefined", and the length of the inputted text somehow immediately jumps up to 9.
image
I'm not sure if this is supposed to happen, but my guess is that it shouldn't happen.

@CubesterYT
Copy link
Collaborator

That's because the extension seems to be returning undefined with no text inputted. It's returning 9 because "undefined" is 9 characters long.

@CubesterYT CubesterYT added the bug Something isn't working label Nov 27, 2024
@CubesterYT
Copy link
Collaborator

The fix is for the extension would be to just return an empty string, instead of undefined.

@CubesterYT CubesterYT self-assigned this Nov 27, 2024
@ffghdfh
Copy link
Author

ffghdfh commented Nov 27, 2024

Oh my god you're right, i'm so dumb. Huge thanks, you helped me hit my coding deadline 💖

@CubesterYT
Copy link
Collaborator

No problem

@Thebloxers998
Copy link

This problem has been solved 👍

@CubesterYT
Copy link
Collaborator

It hasn't, I haven't made the fix yet. Thanks for the comment, it reminded me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants