?
avatar fdesanto
fdesanto
4 Jun 2017

Steps to reproduce the issue

Each form that contain tel phone field

Expected result

Output should be something like:
<input type="tel" id="jform_name_of_field" name="jform[name_of_field]" class="validate-phone required" value="" size="30" />

Actual result

<input type="tel" id="jform_name_of_field " name="jform[name_of_field]" class="validate-phone required" value="" size="30" />
There is a space in ID attribute!!
Javascript function like jQuery('#jform_name_of_field') do not works

System information (as much as possible)

Joomla 3.7.2

Additional comments

to fix this you need to remove space char in file /layouts/joomla/form/field/tel.php at line 71

avatar fdesanto fdesanto - open - 4 Jun 2017
avatar joomla-cms-bot joomla-cms-bot - change - 4 Jun 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Jun 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Jun 2017
Category com_fields JavaScript
avatar C-Lodder
C-Lodder - comment - 4 Jun 2017

PR: #16524

avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Jun 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-06-04 16:59:01
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - close - 4 Jun 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 4 Jun 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Jun 2017

closed as having PR #16524


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16523.

Add a Comment

Login with GitHub to post a comment