add aria-label to form inputs

This commit is contained in:
daria 2026-03-30 14:17:10 +03:00
parent 7a3298c3b9
commit 1d831fcfd8
No known key found for this signature in database
GPG Key ID: 3B75240E6B2F2701

View File

@ -4201,6 +4201,7 @@ define([
}
if (saving && !e) { return; } // Prevent spam Enter
block.q = v.trim();
$inputQ.attr('aria-label', block.q);
framework.localChange();
saving = true;
framework._.cpNfInner.chainpad.onSettle(function () {
@ -4212,6 +4213,7 @@ define([
};
var onCancelQ = function () {
$inputQ.val(block.q || Messages.form_default);
$inputQ.attr('aria-label', block.q || Messages.form_default);
cancel = true;
$inputQ.blur();
$(q).removeClass('editing');
@ -4224,6 +4226,8 @@ define([
$(q).addClass('editing');
});
$inputQ.blur(onSaveQ);
$inputQ.attr('aria-label', block.q || Messages.form_default);
q = h('div.cp-form-input-block', [inputQ]);
// Delete question