Skip to content

Commit b8d0081

Browse files
author
Rafael J. Staib
committed
Add fix for issue rstaib#4
1 parent dc6f8e0 commit b8d0081

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

GHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.9.8pre
4+
5+
- Nested tags which have the same node name as the body tag cause an exception. Closes issue [#4](https://github.com/rstaib/jquery-steps/issues/4)
6+
37
## 0.9.7
48

59
- On finish failed the last step button does not become highlighted as error. Closes issue [#3](https://github.com/rstaib/jquery-steps/issues/3)

jquery.steps.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1030,8 +1030,8 @@
10301030
contentWrapper.html(wizard.html());
10311031
wizard.attr("role", "application").addClass(options.cssClass).empty().append(contentWrapper);
10321032

1033-
var stepTitles = contentWrapper.find(options.headerTag),
1034-
stepContents = contentWrapper.find(options.bodyTag);
1033+
var stepTitles = contentWrapper.children(options.headerTag),
1034+
stepContents = contentWrapper.children(options.bodyTag);
10351035

10361036
if (stepTitles.length > stepContents.length)
10371037
{

0 commit comments

Comments
 (0)