mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
fix(password-input): mark passwordIsVisible as reactive
This commit is contained in:
parent
b8c2a105a5
commit
95a4ead0e3
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,6 @@
|
|||
|
||||
const dispatch = createEventDispatcher();
|
||||
const errorId = `${id}-error`;
|
||||
const passwordIsVisible = type === 'text';
|
||||
const _labelClass = cx(
|
||||
'--label',
|
||||
hideLabel && '--visually-hidden',
|
||||
|
@ -48,6 +47,7 @@
|
|||
tooltipPosition && `--tooltip--${tooltipPosition}`,
|
||||
tooltipAlignment && `--tooltip--align-${tooltipAlignment}`
|
||||
);
|
||||
$: passwordIsVisible = type === 'text';
|
||||
</script>
|
||||
|
||||
<div class={cx('--form-item', '--text-input-wrapper', '--password-input-wrapper')}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue