diff options
Diffstat (limited to 'src/selectable.rs')
| -rw-r--r-- | src/selectable.rs | 8 |
1 files changed, 8 insertions, 0 deletions
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 |
