Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

chore(MultiSelector): format the source with the repository's Prettier settings (#9247)

Cindy Zhangc5c7deaf6767
diff --git a/.changeset/multiselector-prettier-format.md b/.changeset/multiselector-prettier-format.md
new file mode 100644
index 0000000000..4430be1219
--- /dev/null
+++ b/.changeset/multiselector-prettier-format.md
@@ -0,0 +1,7 @@
+---
+'@astryxdesign/core': patch
+---
+
+[chore] MultiSelector's source is formatted with the repository's Prettier settings. No behavior changes.
+
+@cixzhang
diff --git a/packages/core/src/MultiSelector/MultiSelector.tsx b/packages/core/src/MultiSelector/MultiSelector.tsx
index c10e33e87d..210a21adde 100644
--- a/packages/core/src/MultiSelector/MultiSelector.tsx
+++ b/packages/core/src/MultiSelector/MultiSelector.tsx
@@ -2531,20 +2531,24 @@ export function MultiSelector<T extends MultiSelectorOptionType>({
...(ariaLabelledByProp != null
? {'aria-labelledby': ariaLabelledByProp}
: null),
- ref: mergeRefs<HTMLElement>(el => {
- popover.triggerRef(el);
- triggerRef.current = el;
- // A control that takes no focus has nowhere for focus to return to
- // when the panel closes, and focus would land on the body — the
- // person loses their place in the page. Making it programmatically
- // focusable repairs the return without putting it in the tab order,
- // which is the caller's decision to make. It does not make the
- // control openable from the keyboard: only a real control does
- // that, which is what the warning below is for.
- if (el != null && !el.matches(FOCUSABLE_SELECTOR)) {
- el.tabIndex = -1;
- }
- }, triggerModality.ref, ref),
+ ref: mergeRefs<HTMLElement>(
+ el => {
+ popover.triggerRef(el);
+ triggerRef.current = el;
+ // A control that takes no focus has nowhere for focus to return to
+ // when the panel closes, and focus would land on the body — the
+ // person loses their place in the page. Making it programmatically
+ // focusable repairs the return without putting it in the tab order,
+ // which is the caller's decision to make. It does not make the
+ // control openable from the keyboard: only a real control does
+ // that, which is what the warning below is for.
+ if (el != null && !el.matches(FOCUSABLE_SELECTOR)) {
+ el.tabIndex = -1;
+ }
+ },
+ triggerModality.ref,
+ ref,
+ ),
id: triggerId,
onClick: isEffectivelyReadOnly
? onClick