filamentphp/filament · error · LogicException

The text input [{$this->getStatePath()}] is not a [password(

Error message

The text input [{$this->getStatePath()}] is not a [password()], so it cannot be [revealable()].

What it means

Error "The text input [{$this->getStatePath()}] is not a [password()], so it cannot be [revealable()]." thrown in filamentphp/filament.

Source

Thrown at packages/forms/src/Components/TextInput.php:170

    public function revealable(bool | Closure $condition = true): static
    {
        $this->isRevealable = $condition;
        $this->suffixActions([
            TextInput\Actions\ShowPasswordAction::make()->visible($condition),
            TextInput\Actions\HidePasswordAction::make()->visible($condition),
        ]);

        return $this;
    }

    public function isPasswordRevealable(): bool
    {
        if (! $this->evaluate($this->isRevealable)) {
            return false;
        }

        return $this->isPassword() ?: throw new LogicException("The text input [{$this->getStatePath()}] is not a [password()], so it cannot be [revealable()].");
    }

    public function copyable(
        bool | Closure $condition = true,
        string | Closure | null $copyMessage = null,
        int | Closure | null $copyMessageDuration = null
    ): static {
        $this->isCopyable = $condition;

        $this->suffixAction(
            TextInput\Actions\CopyAction::make()
                ->copyMessage($copyMessage)
                ->copyMessageDuration($copyMessageDuration)
                ->visible($condition),
        );

        return $this;
    }

View on GitHub (pinned to 53483fa934)

When it happens

Trigger: Thrown at packages/forms/src/Components/TextInput.php:170 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of filamentphp/filament@53483fa934 (2026-08-17). Data as JSON: /api/errors/a20617c4b704bead. Report an issue: GitHub.