[openstreetmap/openstreetmap-website] Switch to edit pane if rich text field validation fails (PR #5075)

Anton Khorev notifications at github.com
Wed Aug 14 14:21:34 UTC 2024


Before you'd click the submit button and nothing would happen if the text is invalid:
![image](https://github.com/user-attachments/assets/579ee9fc-2173-4d79-a152-4207d0746cb0)

With this PR the *Edit* pane shows which lets you see the validation message:
![image](https://github.com/user-attachments/assets/60691d63-0782-49c6-a5b5-7154d870bd4d)

You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5075

-- Commit Summary --

  * Switch to edit pane if rich text field validation fails

-- File Changes --

    M app/assets/javascripts/richtext.js (4)
    A test/system/rich_text_test.rb (16)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5075.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5075.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5075
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5075 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240814/bb520d89/attachment.htm>


More information about the rails-dev mailing list