Skip to content

Commit dbdaa2b

Browse files
author
Mikaël Capelle
committed
Add default type for button in navbar.
1 parent 4557d7e commit dbdaa2b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/View/Helper/BootstrapNavbarHelper.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ public function link($name, $url = '', array $options = [], array $linkOptions =
192192
* @return string A HTML navbar button.
193193
*/
194194
public function button($name, array $options = []) {
195+
$options += [
196+
'type' => 'button'
197+
];
195198
$options = $this->addClass($options, 'navbar-btn');
196199
return $this->Form->button($name, $options);
197200
}

0 commit comments

Comments
 (0)