HaxeUI problem with the property disabled on a textfield

Hey there,

i have a problem with HaxeUI with the html 5 backend.
If i click the button on the first page and then the exit-button on the second page i can write into the textfield.
The current behaviour is that i can not write to the textfield because it is disabled if the exit-button is clicked.
I think this is a bug or something.

Here is a little example of this problem: https://drive.google.com/file/d/10hwmaseNIE8GP6-ucVVDOUNYPbH7wqBF/view?usp=sharing

Cheers,
Domi

Hey,

Yup you are correct, was a bug in haxeui-html5. Should be fixed now in git (master branch)… Ive also made the styles a little nicer. Text colour is a little lighter (looks more disabled)… get nice “NO!” cursor for disabled components (only applies to haxeui-html5). For completeness this is my test app:

<vbox style="padding: 5px;">
    <button id="bob1" text="Click Me!" onclick="this.text='Thanks!'" style="font-size: 24px;" disabled="true" />
    <textfield id="bob2" text="bob" disabled="true" />
    
    <button text="Toggle" onclick="bob1.disabled = !bob1.disabled; bob2.disabled = !bob2.disabled;" />
</vbox>

Cheers,
Ian

EDIT: you need git master of haxeui-core & haxeui-html5

1 Like

Hey,

now it works as it should.
Thanks.

Cheers,
Domi