ButtonComponentMorph icon indicating copy to clipboard operation
ButtonComponentMorph copied to clipboard

Close on typing

Open ixlipixli opened this issue 8 years ago • 0 comments

Hi,

my popup always closes when I start to type something into the form. I am using the fixed version and I can't figure out why it always closes.

Does someone have an idea?

Found the Problem :

document.onkeydown = function(evt) {
            evt = evt || window.event;
            if( self.options.closeEl !== '' ) {
                var closeEl = self.el.querySelector( self.options.closeEl );
                if( closeEl && self.expanded) {
                    self.toggle();
                }
            }
        };

This caused the closing.

ixlipixli avatar Jun 29 '16 07:06 ixlipixli