kizu / bemto

Smart mixins for writing BEM in Pug
439 stars 66 forks source link

Button with type=button doesn't compile correctly #57

Closed Nitive closed 8 years ago

Nitive commented 8 years ago

Code:

include bemto/bemto

+b.block
  +e('button').element(
    type='button'
  ) test

Expected result:

<div class="block">
  <button type="button" class="block__element">test</button>
</div>

Actual result:

<div class="block">
  <input type="button" class="block__element"/>
</div>
kizu commented 8 years ago

Thanks for the report, this was fixed in branch rc-1.0 and would ship in v1.0.0 of bemto.