Open
Description
Vue version
3.5.13
Link to minimal reproduction
Steps to reproduce
Open te playground and look at the code. No need to interact with the outputted app.
What is expected?
The template syntax should also be underlined that you are not allowed to assign a value to readonly.
What is actually happening?
Please check out the difference in setup vs template syntax. The updateMyText
function warns that copyOfText
shoud not be assigned to as it is readonly. However, this warning is not present when trying to assign a value in the template syntax (e.q @click='copyOfText = 'new value'
.
System Info
N/A
Any additional comments?
The readonly functionality itself does work, but the code is not highlighted causing hard to find bugs.