fixed the bug where readonly is displayed when field is empty