We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cad5b21 commit f435cd5Copy full SHA for f435cd5
1 file changed
app/assets/javascripts/flags.js
@@ -55,10 +55,18 @@ $(() => {
55
}
56
});
57
58
+ QPixel.DOM?.watchClass('.js-flag-box.is-active', (target) => {
59
+ const reasonInput = target.querySelector('input[name="flag-reason"]');
60
+
61
+ if (QPixel.DOM?.isHTMLElement(reasonInput)) {
62
+ reasonInput.focus();
63
+ }
64
+ });
65
66
QPixel.DOM?.watchClass('[id^="flag-comment"].is-active', (target) => {
67
const reasonInput = target.querySelector('.js-comment-flag-reason');
68
- if (reasonInput instanceof HTMLInputElement) {
69
70
reasonInput.focus();
71
72
0 commit comments