? Pending

User tests: Successful: Unsuccessful:

avatar csthomas
csthomas
20 Nov 2017

Pull Request for Issue #10761

  1. Related and inspired by #12366
  2. Do not add comma (,) to tags

Summary of Changes

  • Wrap code in function to use for a new event.
  • Check for comma in keypress event
  • Check for enter in keyup event
  • Do not add a comma to tag
  • Use check event.charCode == 44 for comma which should fix the issue.

Testing Instructions

See #10761

Expected result

Fix mentioned issue and comma is not added at the end of tag when you are pressing comma.

Actual result

Comma is added at the end of tag.

Documentation Changes Required

No

avatar csthomas csthomas - open - 20 Nov 2017
avatar csthomas csthomas - change - 20 Nov 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Nov 2017
Category Layout
avatar Quy
Quy - comment - 21 Nov 2017

I don't know jQuery, however, I tested it successfully, Can it still be counted toward a success test?

avatar A-Kasaaian
A-Kasaaian - comment - 21 Nov 2017

I hope it become a part of Joomla in the next release, which helps a lot of users

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 21 Nov 2017

@A-Kasaaian if you test we have one of two needed Test so Release Lead can decide if merge or not.

avatar dgt41
dgt41 - comment - 21 Nov 2017

FWIW we’re working in a new tags custom element for j4 which also supports this behavior and also drag and drop for rearranging the order of the tags. The wip code is here: https://codepen.io/dgt41/pen/KvbbdE

avatar A-Kasaaian
A-Kasaaian - comment - 21 Nov 2017

@franz-wohlkoenig As I have provided the solution about one year ago and reviewed it about 2 month ago. I've tested it multiple times. I'm sure it works fine with all languages. Here is the solution I wrote and csthomas created this pull request based on that. csthomas has mentioned all needed links in the first comment.
thank you @csthomas for helping and correcting changes.

avatar A-Kasaaian
A-Kasaaian - comment - 21 Nov 2017

@dgt41 Thanks. That code on codepen is working fine too.

avatar csthomas
csthomas - comment - 23 Nov 2017

@dgt41 Can we mark comments from @A-Kasaaian and @Quy as success tests?

avatar franz-wohlkoenig franz-wohlkoenig - alter_testresult - 23 Nov 2017 - A-Kasaaian: Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - alter_testresult - 23 Nov 2017 - Quy: Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Nov 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 Nov 2017

Ready to Commit after two successful tests.

avatar mbabker mbabker - change - 24 Nov 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-11-24 18:06:41
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 24 Nov 2017
avatar mbabker mbabker - merge - 24 Nov 2017

Add a Comment

Login with GitHub to post a comment