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

Showing drawer causes javascript error: .transition undefined

1 Answer 136 Views
Drawer (Mobile)
This is a migrated thread and some comments may be shown as answers.
Jens
Top achievements
Rank 1
Jens asked on 12 Jan 2016, 11:26 AM

Hello,

I want to use the mobile drawer for navigation between views and initialize it from JavaScript and the resulting DOM elements look correct. However, when showing the drawer I get an error in the bold line below due to "transition" being undefined: 

            if (this.options.swipeToOpen && SWIPE_TO_OPEN) {
                userEvents.bind("press", function() { drawer.transition.cancel(); });

How should the drawer be initialized to avoid this error?

1 Answer, 1 is accepted

Sort by
0
Jens
Top achievements
Rank 1
answered on 13 Jan 2016, 01:14 PM
Well, found the answer: as it does state in the documentation, transitions should be removed when the drawer is used for navigation between local views...
Tags
Drawer (Mobile)
Asked by
Jens
Top achievements
Rank 1
Answers by
Jens
Top achievements
Rank 1
Share this question
or