-
Notifications
You must be signed in to change notification settings - Fork 63
Description
Hi maintainers,
In my program, I disable and re-enable a couple winput fields during runtime. It starts out enabled (and the user can properly enter text), then I set winput.disabled = True
and then winput.disabled = False
, but the winput field cannot be made to enter text again. This is unexpected, as re-enabling the winput field should allow text to be entered again.
Also, re-enabling the field does change the element's styling, but does not remove disabled="disabled"
on the HTML element. So it seems like the intent is for the field to be re-enabled, but it does not properly get re-enabled.
I was able to reproduce this with the following program:
from vpython import *
w = winput(bind=lambda box: print(box.text)) # At this point, the user can enter text
w.disabled = True # At this point, the user cannot enter text
w.disabled = False # At this point, the user cannot (but I think _should_ be able to) enter text
Is this a bug? If it is, and we agree on a fix (having w.disabled = False
re-enable the HTML input field), I can investigate and make a pull request.
Thank you maintainers!