diff --git a/js/layout-paragraphs-widget.js b/js/layout-paragraphs-widget.js index b2ac3c50e566defbe85c8f0891582cd6992241e6..b574c2b0fde4a642c77aa6e9969306ce4590c8f8 100644 --- a/js/layout-paragraphs-widget.js +++ b/js/layout-paragraphs-widget.js @@ -911,6 +911,12 @@ ) .prependTo($(layoutParagraphsItem)); }); + /** + * Set state to loading when a radio is clicked. + */ + $(".layout-select input[type=radio]", $widget).change(e => { + setLoading($(e.target).closest(".layout-select")); + }); /** * Only show disabled items if there are items in the field. * Runs every time DOM is updated.