Enum readonly property

I noticed that for a enum field in a generated form, even if you set the property readonly, the user will still be able to select a different value. Is this the expected functioning? Shouldn’t the value be locked and user not be able to change?