[wp-trac] [WordPress Trac] #32580: Quick edit: persisting auto-suggest tags tooltip

WordPress Trac noreply at wordpress.org
Tue Jun 9 14:02:38 UTC 2015


#32580: Quick edit: persisting auto-suggest tags tooltip
----------------------------+------------------------------
 Reporter:  afercia         |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  4.2
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  ui, javascript
----------------------------+------------------------------

Comment (by afercia):

 Replying to [comment:1 rommelxcastro]:
 > didn't find a better way to deal with this, the plugin doesn't have a
 public function to accomplish this.
 Hi @rommelxcastro, thanks very much. Had a look at the plugin and yes
 maybe the more appropriate fix would be patching the plugin (which was
 already patched in the past as far as I see). Maybe we should ask some
 devs, maybe @azaozz? :)

 Worth noting there are also a couple more things that don't work properly.

 Initially, `prevLength` is always 0 so it assumes to find an empty form
 field. When there is already a tag saved `$input.val().length !=
 prevLength` will always be true and it will trigger the suggest when you
 blur the field, also when you don't do any change. Thinking `prevLength`
 should be a plugin option to be set to the current field value length.

 The blur interval here:
 {{{
 $input.blur(function() {
         setTimeout(function() { $results.hide() }, 200);
 });
 }}}
 should be configurable via plugin options, as the delay interval
 (currently set to 500) is. Please notice that currently the hide interval
 triggers before the suggest and that's the reason why the tooltip
 persists.

 Pressing Escape when in the textarea should close the suggest tooltip. To
 fix this, we should return in a couple of places in `inline-edit-post.js`
 if the event target is the textarea.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32580#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list