@@ -92,9 +92,9 @@ public function rules(): array
9292
9393 /**
9494 * Added to make migrating from amNav easier
95- * @since 2.6.0
9695 * @return mixed
9796 * @throws \craft\errors\DeprecationException
97+ * @since 2.6.0
9898 */
9999 public function listClass ()
100100 {
@@ -105,9 +105,9 @@ public function listClass()
105105
106106 /**
107107 * Added to make migrating from amNav easier
108- * @since 2.6.0
109108 * @return mixed
110109 * @throws \craft\errors\DeprecationException
110+ * @since 2.6.0
111111 */
112112 public function hasChildren ()
113113 {
@@ -130,13 +130,14 @@ public function active()
130130 if (substr ("/ " . Craft::$ app ->request ->getPathInfo (), 0 , strlen ($ this ->url )) === $ this ->url ) {
131131 return true ;
132132 }
133-
134133 break ;
134+ case 'heading ' :
135+ return false ;
135136 default :
136137 if ($ this ->url === Craft::$ app ->request ->getAbsoluteUrl ()) {
137138 return true ;
138139 }
139-
140+
140141 if (strpos (Craft::$ app ->request ->getAbsoluteUrl (), '? ' )) {
141142 if (explode ('? ' , Craft::$ app ->request ->getAbsoluteUrl ())[0 ] === $ this ->url ) {
142143 return true ;
@@ -163,13 +164,14 @@ public function current()
163164 if (substr ("/ " . Craft::$ app ->request ->getPathInfo (), 0 , strlen ($ this ->url )) === $ this ->url ) {
164165 return true ;
165166 }
166-
167167 break ;
168+ case 'heading ' :
169+ return false ;
168170 default :
169171 if ($ this ->url === Craft::$ app ->request ->getAbsoluteUrl ()) {
170172 return true ;
171173 }
172-
174+
173175 if (strpos (Craft::$ app ->request ->getAbsoluteUrl (), '? ' )) {
174176 if (explode ('? ' , Craft::$ app ->request ->getAbsoluteUrl ())[0 ] === $ this ->url ) {
175177 return true ;
0 commit comments