mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +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 dispatch = createEventDispatcher();
|
||||||
const errorId = `${id}-error`;
|
const errorId = `${id}-error`;
|
||||||
const passwordIsVisible = type === 'text';
|
|
||||||
const _labelClass = cx(
|
const _labelClass = cx(
|
||||||
'--label',
|
'--label',
|
||||||
hideLabel && '--visually-hidden',
|
hideLabel && '--visually-hidden',
|
||||||
|
@ -48,6 +47,7 @@
|
||||||
tooltipPosition && `--tooltip--${tooltipPosition}`,
|
tooltipPosition && `--tooltip--${tooltipPosition}`,
|
||||||
tooltipAlignment && `--tooltip--align-${tooltipAlignment}`
|
tooltipAlignment && `--tooltip--align-${tooltipAlignment}`
|
||||||
);
|
);
|
||||||
|
$: passwordIsVisible = type === 'text';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class={cx('--form-item', '--text-input-wrapper', '--password-input-wrapper')}>
|
<div class={cx('--form-item', '--text-input-wrapper', '--password-input-wrapper')}>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue