This is a migrated thread and some comments may be shown as answers.

Keep drawer from showing while trying to select text

2 Answers 34 Views
Drawer
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 11 Mar 2020, 02:57 PM

For a sample: user your demo here: https://demos.telerik.com/kendo-ui/drawer/index

To reproduce:  Attempt to select the text : "Hi Tom, Since Monday I'll be out of office, I'm rescheduling the meeting for Tuesday" by clicking of the left of the H in Hi and dragging right.  You'll notice the drawer opens and becomes semi-cumbersome to select the text. 

My issue:  My users need to be able at times to select the text that is in the display window of the drawer to select for clipboard use.   Each time I click on some text  and drag right the drawer opens. 

Is there a way to prevent the drawer from activating while I'm trying to select text?  Can i put an attribute in the div wrapper that prevents it from listening for an open?   My users aren't going to be using this on a tablet or phone so I don't need a 'touch' type show event to occur.  I only want the drawer to open/close when the three lines are clicked. 

2 Answers, 1 is accepted

Sort by
0
Steve
Top achievements
Rank 1
answered on 12 Mar 2020, 01:09 PM
I'm going to answer my own post.  I didn't realize there was an option when constructing the drawer named : swipeToOpen.  I set mine to false and it works perfectly.  
0
Viktor Tachev
Telerik team
answered on 13 Mar 2020, 10:24 AM

Hello Steve,

 

Thank you for updating the thread with the solution.

Indeed there is a swipeToOpen option for the Drawer widget and it is enabled by default. Disabling it will enable selecting the text without opening the drawer.

 

Regards,
Viktor Tachev
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Drawer
Asked by
Steve
Top achievements
Rank 1
Answers by
Steve
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or