Title:
Nested CFLAYOUT/CFLAYOUTAREA tags with source attributes throw javascript error
| View in TrackerStatus/Resolution/Reason: To Track//PRNeedInfo
Reporter/Name(from Bugbase): Michael C. / ()
Created: 06/14/2019
Components: AJAX, UI Components
Versions: 2016
Failure Type: Non Functioning
Found In Build/Fixed In Build: 2016,0,11,314546 /
Priority/Frequency: Normal / All users will encounter
Locale/System: English / Win 2012 Server x64
Vote Count: 0
Problem Description:
Nested CFLAYOUT/CFLAYOUTAREA tags with source attributes throw a javascript error related to missing elements in the second tab.
Steps to Reproduce:
tabs.cfm
<cflayout type="tab" name="MyTabLayout">
<cflayoutarea name="tab1" title="Tab 1" source="tab1.cfm"></cflayoutarea>
<cflayoutarea name="tab2" title="Tab 2" source="tab2.cfm"></cflayoutarea>
</cflayout>
tab1.cfm
<cflayout type="vbox" name="mySubLayout1">
<cflayoutarea name="mySubLayoutArea1" source="tab1_content.cfm"></cflayoutarea>
</cflayout>
tab2.cfm
<cflayout type="vbox" name="mySubLayout2">
<cflayoutarea name="mySubLayoutArea2" source="tab2_content.cfm"></cflayoutarea>
</cflayout>
tab1_content.cfm
<p>Tab 1 content</p>
tab2_content.cfm
<p>Tab 2 content</p>
Actual Result:
Javascript error: Error replacing HTML, element not found: mySubLayoutArea2
Expected Result:
No errors
Any Workarounds:
Rollback to CF 2016 Update 7
Attachments:
Comments: