rails_modal_manager 1.0.51 → 1.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9f0c284c73e8a2d5bf8c4a04293332dce7bc16a61cc53279e99dfa1c133e0894
|
|
4
|
+
data.tar.gz: 5215a66e121f1057d17420ce7407c7d4961f8cd1a21d16cf9303a3989abe7892
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 13644c5657a20e5baa80b1304344cf9dcd411856f641e924882a657fed63ca67116a0e61603aa01ca0cf93bb49a3a5724a7117bf1bd797ec79d38348020ebdb7
|
|
7
|
+
data.tar.gz: a2af506573c6b393eb1fa10cfd4246d90a71bdd3d8235fa5e4728cb381d9923dad06aeaed870abf2c4dfb34e083fbe7adfb56a8f900800a73b8a2318a4cc731a
|
|
@@ -26,6 +26,9 @@ function renderButtonHtml(btn) {
|
|
|
26
26
|
const attrs = [`class="${classes.join(" ")}"`]
|
|
27
27
|
if (btn.disabled || btn.loading) attrs.push("disabled")
|
|
28
28
|
if (btn.action) attrs.push(`data-action="${escapeHtml(btn.action)}"`)
|
|
29
|
+
// v1.0.52+: onclick 지원 — Stimulus 컨트롤러 scope 밖(footer 는 panel 밖에 있음)에서
|
|
30
|
+
// 본문의 저장 버튼을 프로그래밍적으로 클릭하거나 form.requestSubmit() 호출하는 용도.
|
|
31
|
+
if (btn.onclick) attrs.push(`onclick="${escapeHtml(btn.onclick)}"`)
|
|
29
32
|
if (btn.id) attrs.push(`data-button-id="${escapeHtml(btn.id)}"`)
|
|
30
33
|
|
|
31
34
|
return `<button type="button" ${attrs.join(" ")}>${escapeHtml(btn.label || "")}</button>`
|