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

Phantom tab button steals input despite texture = null #83232

Closed
Wierdox opened this issue Oct 13, 2023 · 1 comment · Fixed by #83296
Closed

Phantom tab button steals input despite texture = null #83232

Wierdox opened this issue Oct 13, 2023 · 1 comment · Fixed by #83296

Comments

@Wierdox
Copy link
Contributor

Wierdox commented Oct 13, 2023

Godot version

v4.0.2.stable.official [7a0977c] v4.2.dev6.official [57a6813]

System information

Windows 10

Issue description

When assigning an already valid tab button icon texture to null, it keeps a phantom tab button around that intercepts input from the tabs, even off the tab bar.

  • Issue occurs in both TabContainer and TabBar.
  • Assigning tab button icon from a texture to null will cause the issue.
  • Will emit its tab_button_pressed signal, prevents tab beneath from getting the input.
Godot_v4.2-dev6_win64_AWBHLNAo4x.webm

Steps to reproduce

Download repro, run main and click around like the video above.

Minimal reproduction project

bug_reproduction.zip

@Wierdox
Copy link
Contributor Author

Wierdox commented Oct 13, 2023

I think I'm close to finding a simple fix, will open a PR probably later today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants