From 7ade9058c511d4be93991602b1ce27fd51d0b9c1 Mon Sep 17 00:00:00 2001 From: "ilia.brauer" Date: Thu, 5 Mar 2026 12:59:14 +0100 Subject: [PATCH 1/3] [website] added some notes about how ellipsis works --- website/docs/utils/ellipsis/ellipsis-code.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/website/docs/utils/ellipsis/ellipsis-code.md b/website/docs/utils/ellipsis/ellipsis-code.md index e7409b0bbf..cfca20ea29 100644 --- a/website/docs/utils/ellipsis/ellipsis-code.md +++ b/website/docs/utils/ellipsis/ellipsis-code.md @@ -11,6 +11,14 @@ To use the default settings, use `ellipsis={true}`. Ellipsis can be enabled in all other components that are based on Text, such as [Button.Text](../../components/button/button-api#button-text), [Link.Text](../../components/link/link-api#link-text), [Card.Title](../../components/card/card-api#card-title), and so on. To find out which components support the `ellipsis` property, refer to the API documentation. +Because of performance, we don't observe chnages in the `Text` children property. So, if you have some dynamically changed children in the `Text` component, you should set `observerChildrenMutations=true` to the ellipsis settings. +Also, you can set uniq key on the `Text`, depends on children content. + +::: tip +For some reason, for the `FilterTrigger.Text` right now works only key property. +::: + + ::: sandbox ::: + +## FilterTrigger (dynamic children) + +Due to performance considerations, we don't observe changes in the `Text` children property. So, if you have some dynamically changing children in the `Text` component, you should set `observerChildrenMutations={true}` in the ellipsis settings. + +Alternatively, you can set a unique `key` on the `Text`, depending on the children content. + +::: tip +For some reason, only setting the `key` property works for `FilterTrigger.Text` right now. +::: + +::: sandbox + + + +:::