Problem in dropdown menu
Hi all,
I am looking some help to try to fix a problem in one of my addon: gmFonts https://www.wowinterface.com/downloa...4-gmFonts.html It used a component by phanx to make the font selector: PhanxConfig-Dropdown.lua https://github.com/phanx-wow/PhanxCo...g-Dropdown.lua But with the patch it was not unable to select the items anymore. I have checked my code and I don't think it is a fault by it so a filled a iussue case to phanx to git but I sadly think she doesn't follow it anymore. So I am here to ask if someone can help to debug it or is using it and has fixed or has alternative to it. Thanks. |
Had this issue earlier aswell, it's because CloseDropDownMenus() is now called every time you click something ingame so it closes the phanx dropdown before you get to actually click on any entries. I've submitted a pull request to PhanxConfig-Dropdown now that should fix it.
|
|
Thanks so much for your help.
It works nicely if I put the unregister event in my addon: Lua Code:
But what I get as side effect of this ? May I break something else ? Thanks. |
It seems primarily to effect clearing a dropdown entry if it has autocomplete and you click in it.
Edit: It does some other things that also happen on GLOBAL_MOUSE_UP so unless someone moves the mouse off the field before releasing, it shouldn't be effected. |
I have implemented this in the options frame hoping not to break too many things.
When someone find the way to patch the phanx code please let me know and I remove this :) In the meantime thanks so much to everyone for the help. It is really appreciated help. |
Quote:
Do you think it should be better to: Lua Code:
too ? Thanks ... |
There should not be any need to do that if you aren't seeing any ill effects (GLOBAL_MOUSE_UP also performs some of the tasks done by mouse down like hiding the dropbox so you would loose those if you unregistered it).
|
All times are GMT -6. The time now is 10:46 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI