Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #42042, comment 9


Ignore:
Timestamp:
10/23/2017 09:05:54 PM (8 years ago)
Author:
felipeelia
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #42042, comment 9

    initial v1  
    11Hi @afercia and @swissspidy,
    22
    3 In the first patch I've assigned {{permalinkStructureFocused = false;}} after that if, what I think does what you're suggesting (since we are dealing with a button click, the text input has lost it focus for sure).
     3In the first patch I've assigned {{{permalinkStructureFocused = false;}}} after that if, what I think does what you're suggesting (since we are dealing with a button click, the text input has lost it focus for sure).
    44
    55The problem with that is that the second button clicked always append to the end (I don't know if it's really a problem at all). Can we try saving the cursor position in a variable on input blur? If any focus event happen on other element then this text input or the available tags, this var should be nulled. What do you think? I think I can make a patch with this very quickly.