Problem/Motivation

Uncaught Error: cannot call methods on dialog prior to initialization; attempted to call method 'option'

Steps to reproduce

1) Set Bootstrap as the default theme;
2) Create a subtheme based on Bootstrap;
3) Create a web form and enable Ajax;
4) Display the form in a modal window;
5) Fill out and submit the form;
6) Check the developer console.

Proposed resolution

Remove logic in the contrib Bootstrap theme that adds the deprecated ‘ui-dialog-content’ class of the jQuery UI library and calls a Drupal Core behavior without options after the form submission.

CommentFileSizeAuthor
#3 bootstrap_theme_ajax_response_error.patch349 bytesbobi-mel

Issue fork bootstrap-3448539

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bobi-mel created an issue. See original summary.

bobi-mel’s picture

StatusFileSize
new349 bytes

I've found the reason and fix the bug. Also, added the patch. Please check it.