aesmail / kaffy

Powerfully simple admin package for phoenix applications
https://kaffy.fly.dev/admin/
MIT License
1.34k stars 155 forks source link

[BUG] :readonly option not working #282

Closed roryfahy closed 1 year ago

roryfahy commented 1 year ago

Versions Used Kaffy: tried both {:kaffy, "~> 0.9.2"}, and {:kaffy, github: "aesmail/kaffy"}, Phoenix: 1.7 Elixir: 1.15.3

What's actually happening? :readonly value for :create and :update opts do not prevent writing as expected but instead allow updates/selections on create.

Selecting :hidden works as expected

What should happen instead? expected behaviour of not allowing writing values

Screenshots If applicable, add screenshots to help explain your problem. image image

aesmail commented 1 year ago

@roryfahy a fix has been implemented and will be available in the next release. Thank you.