From 1b54e952d15fafac0c086f8312a6c3c64c9d120b Mon Sep 17 00:00:00 2001 From: alex-ds13 <145657253+alex-ds13@users.noreply.github.com> Date: Thu, 4 Dec 2025 03:12:37 +0000 Subject: fix(selectable): update docs with warning about selectable usage --- src/selectable.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/selectable.rs') diff --git a/src/selectable.rs b/src/selectable.rs index 217f913..fc0e996 100644 --- a/src/selectable.rs +++ b/src/selectable.rs @@ -4,6 +4,10 @@ //! for all selections contained inside it and writing to the [`Standard`] clipboard when there is //! some selection. //! +//! WARNING: You should only have one [`Selectable`] on your app, preferrably as the root of your +//! app to make sure that any [`Text`] or [`Rich`] is inside it. Having multiple selectables or a +//! selectable along side some [`Text`] or [`Rich`] is undefined behavior and even though the +//! selection might look ok for you the copied text will probably not be what you expect. //! //! [`Text`]: crate::Text //! [`Rich`]: crate::text::Rich @@ -25,6 +29,10 @@ use crate::core::{ /// for all selections contained inside it and writing to the [`Standard`] clipboard when there is /// some selection. /// +/// WARNING: You should only have one [`Selectable`] on your app, preferrably as the root of your +/// app to make sure that any [`Text`] or [`Rich`] is inside it. Having multiple selectables or a +/// selectable along side some [`Text`] or [`Rich`] is undefined behavior and even though the +/// selection might look ok for you the copied text will probably not be what you expect. /// /// [`Text`]: crate::Text /// [`Rich`]: crate::text::Rich -- cgit v1.2.3