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

Destroying and recreating Toolbar causes Splitbutton expansion problem

2 Answers 36 Views
Toolbar
This is a migrated thread and some comments may be shown as answers.
Rich
Top achievements
Rank 1
Rich asked on 20 Apr 2017, 05:26 PM

Destroying and recreating a Toolbar in the same DOM element causes problem with Splitbutton expansion via keyboard.  To reproduce:

1.  Create a toolbar with a splitbutton.  Using the keyboard, tab to the splitbutton and use alt-down to expand it.  Works great.

2.  Destroy the toolbar with .destroy(), and empty the containing DOM element.

3.  Create a toolbar with a splitbutton in the same (now empty) DOM.

4.  Tab to the splitbutton and press alt-down.  The splitbutton expands and immediately closes.

Demonstrated here:  http://dojo.telerik.com/@richm/odATu

Any advice is greatly appreciated!

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 24 Apr 2017, 02:21 PM
Hello Rich,

Thank you for the detailed code sample provided.

I can confirm that the behavior that you are experiencing is a bug. I have logged the issue on our official bug tracker and you can start tracking it from here.

On the following Dojo example, you will find a modified version of your example, which destroys the current Toolbar widget, removes it from the DOM and then appends a new element to the toolbar container. You can modify this according to your needs and use it as a temporary workaround until the issue is resolved.

As a token of gratitude for reporting this bug, I have updated your Telerik points. You can find more information in your Telerik profile.

Regards,
Dimitar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Rich
Top achievements
Rank 1
answered on 24 Apr 2017, 05:26 PM

Thank you Dimitar, I appreciate it!

Rich

Tags
Toolbar
Asked by
Rich
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Rich
Top achievements
Rank 1
Share this question
or