fixed IE bug...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2015-07-11 22:02:09 +03:00
parent 889e15bbf5
commit 2b4305aff7

View File

@ -432,8 +432,6 @@ var BrowserPrototype = {
// path due to an error, we need to be able to render the new // path due to an error, we need to be able to render the new
// path both in the path and list sections... // path both in the path and list sections...
// NOTE: current behaviour is not wrong, it just not too flexible... // NOTE: current behaviour is not wrong, it just not too flexible...
// XXX BUG (IE): clicking the filter field selects it but loses
// focus disabling text input...
update: function(path){ update: function(path){
path = path || this.path path = path || this.path
var browser = this.dom var browser = this.dom
@ -470,6 +468,8 @@ var BrowserPrototype = {
// XXX BUG: for some reason this element keeps the selection // XXX BUG: for some reason this element keeps the selection
// but looses focus in IE... // but looses focus in IE...
.click(function(){ .click(function(){
event.stopPropagation()
that.toggleFilter('on') that.toggleFilter('on')
//that.update(path.concat($(this).text())) //that.update(path.concat($(this).text()))
@ -480,6 +480,8 @@ var BrowserPrototype = {
// XXX HACK: this will work around double triggering of the focus // XXX HACK: this will work around double triggering of the focus
// event after a click happens... // event after a click happens...
that._focus_hold = true that._focus_hold = true
setTimeout(function(){ console.log('>>>', $(':focus')[0]) }, 1000)
}) })
// XXX for some reason this gets triggered when clicking ano // XXX for some reason this gets triggered when clicking ano
// is not triggered when entering via '/' // is not triggered when entering via '/'