Code Monkey home page Code Monkey logo

Comments (3)

gafitescu avatar gafitescu commented on June 16, 2024 8

Hi,
In my case the problem was in a boostrap modal and the fix was this :
$('#createLinkModal').on('shown.bs.modal', function (e) { $(document).off('focusin.modal'); });

from bootstrap-iconpicker.

ronenli avatar ronenli commented on June 16, 2024

Solution:

$.widget( "ui.dialog", $.ui.dialog, {
        /*! jQuery UI - v1.10.2 - 2013-12-12
         *  http://bugs.jqueryui.com/ticket/9087#comment:27 - bugfix
         *  http://bugs.jqueryui.com/ticket/4727#comment:23 - bugfix
         *  allowInteraction fix to accommodate windowed editors
         */
        _allowInteraction: function( event ) {

            if ( this._super( event ) ) {
                return true;
            }

            // address interaction issues with general iframes with the dialog
            if ( event.target.ownerDocument != this.document[ 0 ] ) {
                return true;
            }

            // address interaction issues with popover dialog
            if ( $( event.target ).closest( ".popover" ).length ) {
                return true;
            }

            // address interaction issues with dialog window
            if ( $( event.target ).closest( ".cke_dialog" ).length ) {
                return true;
            }

            // address interaction issues with iframe based drop downs in IE
            if ( $( event.target ).closest( ".cke" ).length ) {
                return true;
            }

        },
        /*! jQuery UI - v1.10.2 - 2013-10-28
         *  http://dev.ckeditor.com/ticket/10269 - bugfix
         *  moveToTop fix to accommodate windowed editors
         */
        _moveToTop: function ( event, silent ) {

            if ( !event || !this.options.modal ) {
                this._super( event, silent );
            }

        }
    });

from bootstrap-iconpicker.

StefanLundmark avatar StefanLundmark commented on June 16, 2024

That results in an Uncaught TypeError for me. It says it cannot read property 'dialog' of undefined. This fix is specific to jQuery and people might be using bootstrap or some other solution in which case this fix isn't going to work.

from bootstrap-iconpicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.