fix textbox disabling even when not allowed to