fix(password-input): stop propagation when toggling input type

#229
This commit is contained in:
Eric Liu 2020-08-12 07:18:57 -07:00
commit 6ca6af94eb
3 changed files with 14 additions and 2 deletions

View file

@ -177,7 +177,7 @@
class:bx--tooltip--a11y={true}
class="{tooltipPosition && `bx--tooltip--${tooltipPosition}`}
{tooltipAlignment && `bx--tooltip--align-${tooltipAlignment}`}"
on:click={() => {
on:click|stopPropagation={() => {
type = type === 'password' ? 'text' : 'password';
}}>
<span class:bx--assistive-text={true}>