Custom Query (7259 matches)
Results (133 - 135 of 7259)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#9771 | fixed | Autocomplete: The input value should not be set when moving past the beginning or end or a menu for contenteditable | ||
Description |
I am building a rich text editor that features facebook like in-line tags and @mentions. https://github.com/Yermo/rich_textarea When the focus: event is cancelled (event.preventDefault()) the documentation says the input value should not be replaced when menu items are focused. This works correctly until you go past the end or beginning of the menu, at which point it incorrectly resets the value. (Chrome 31.0.1650.63 under Ubuntu Linux) See this jsfiddle: http://jsfiddle.net/2256A/ To reproduce, type the word cold in the editable div and move the arrow key down past the end of the menu. You will see the cursor jump to the left. The correct behavior should be that the cursor does not move. The offending line is in jquery.ui.autocomplete.js in the _move: method at line 537. Unfortunately, the editable div does not get a focus event so there doesn't seem to be a way to intercept this. I suggest firing the focus() event before calling this._value() as in: if ( this.menu.isFirstItem() && /^previous/.test( direction ) || this.menu.isLastItem() && /^next/.test( direction ) ) { if ( false !== this._trigger( "focus", event, { item: null } ) ) { this._value( this.term ); } this.menu.blur(); return; } |
|||
#7808 | duplicate | Memory leak jQuery.ui.widget | ||
Description |
Memory leak jQuery.ui.widget. Memory (private bytes of IE process) increases when create and destroy of the simple widget are repeated. jQuery core 1.6.4 jQuery.ui 1.8.16 browser IE8 OS Windows XP SP3 Memory Leak test code http://jsfiddle.net/NzJGH/3/ Workaround code http://jsfiddle.net/NzJGH/2/ |
|||
#9494 | notabug | inst.drawMonth & inst.drawYear can't set on beforeShow | ||
Description |
need fix. fix example: _showDatepicker { ... inst.drawMonth = inst.drawYear = -1; beforeShow = $.datepicker._get(inst, "beforeShow"); .. } _setDateFromField{ ... if (inst.drawMonth == -1) inst.drawMonth = inst.selectedMonth = date.getMonth(); else inst.selectedMonth = inst.drawMonth; if (inst.drawYear == -1) inst.drawYear = inst.selectedYear = date.getFullYear(); else inst.selectedYear = date.getFullYear(); //inst.drawMonth = inst.selectedMonth = date.getMonth(); //inst.drawYear = inst.selectedYear = date.getFullYear(); } |