[wp-trac] [WordPress Trac] #42042: Permalink structure tags are sometimes added to the front the of the structure
WordPress Trac
noreply at wordpress.org
Mon Oct 23 20:46:09 UTC 2017
#42042: Permalink structure tags are sometimes added to the front the of the
structure
--------------------------+------------------------------------------------
Reporter: ocean90 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9
Component: Permalinks | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: ui, accessibility, administration
needs-refresh |
--------------------------+------------------------------------------------
Comment (by felipeelia):
Hi @afercia and @swissspidy,
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).
The 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.
(Sorry, English isn't my first language, feel free to correct me or ask
more about this idea.)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42042#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list