godotjs / godotjs/javascript

TextEdit can be focused when running game

Open
#206 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
1.1k
Forks
80
PR merge metrics
No merged PRs in 30d

Description

### Version

4.1-0.0.17

### System information

Godot v4.1.5.rc (488757bd0) - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA RTX A3000 Laptop GPU (NVIDIA; 31.0.15.2879) - 11th Gen Intel(R) Core(TM) i5-11500H @ 2.90GHz (12 Threads)

### Issue description

Attaching any `.mjs` script to an `TextEdit` Node will disable the focus when running the game

### Steps to reproduce

1. Create a script `my-class.mjs`
2. Add a `Control` node
3. Add a `TextEdit` node inside `Control`
4. Attach `my-class.mjs` to `TextEdit`
5. Run game
6. Cannot write or focus `TextEdit`

### Minimal reproduction project (MRP)

````
export default class MyClass extends godot.TextEdit {
_ready() {
console.log("I run in TextEdit");
}
}

````

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.