chore(next): improve performance of a specific selector

This commit is contained in:
Elian Doran
2025-07-08 21:09:13 +03:00
parent decb0c702d
commit 2fac2a8c5e
2 changed files with 4 additions and 3 deletions

View File

@@ -188,6 +188,7 @@ export default class PromotedAttributesWidget extends NoteContextAwareWidget {
.append($multiplicityCell);
if (valueAttr.type === "label") {
$wrapper.addClass(`promoted-attribute-label-${definition.labelType}`);
if (definition.labelType === "text") {
$input.prop("type", "text");