Skip to content

Commit f75df16

Browse files
committed
improve comment
1 parent f18da60 commit f75df16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/common-button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function onShowModalClick(el: HTMLElement, e: MouseEvent) {
124124
// * Then, try to query '[name=target]'
125125
// * Then, try to query '.target'
126126
// * Then, try to query 'target' as HTML tag
127-
// If there is a ".{attr}" part like "data-modal-form.action", then the form's "action" property will be set.
127+
// If there is a ".{prop-name}" part like "data-modal-form.action", the "form" element's "action" property will be set, the "prop-name" will be camel-cased to "propName".
128128
e.preventDefault();
129129
const modalSelector = el.getAttribute('data-modal');
130130
const elModal = document.querySelector(modalSelector);

0 commit comments

Comments
 (0)