mmd-osm left a comment (openstreetmap/openstreetmap-website#6192)

The click.rails event seems to be handled by jquery-ujs 
(https://github.com/rails/jquery-ujs/blob/master/src/rails.js#L524-L551). 
There's also some code in place to re-enable form elements, but my debugger 
isn't stopping there. It seems the turbo drive link I've posted earlier on 
isn't relevant?

```
    $document.on('ajax:complete.rails', rails.formSubmitSelector, 
function(event) {
      if (this === event.target) rails.enableFormElements($(this));
    });
```

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

Message ID: 
<openstreetmap/openstreetmap-website/pull/6192/c3070346...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to