diff options
| author | alex-ds13 <145657253+alex-ds13@users.noreply.github.com> | 2025-12-04 03:12:37 +0000 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2025-12-30 18:13:59 +0100 |
| commit | 1b54e952d15fafac0c086f8312a6c3c64c9d120b (patch) | |
| tree | 72a85ae141ea7d1d3ebc3f0028608c0b04caf9fd /src/selectable.rs | |
| parent | feat(selectable): draft implementation of selectable widget (diff) | |
| download | iced_selection-1b54e952d15fafac0c086f8312a6c3c64c9d120b.tar.gz | |
fix(selectable): update docs with warning about selectable usage
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 |
