Skip to content

Commit 32165fb

Browse files
committed
fix(view): simplify getAttribute to not fallback to :prefix
1 parent efaf9c6 commit 32165fb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/view/src/Elements/IsElement.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,7 @@ public function getAttribute(string $name): ?string
6060
{
6161
$attributes = $this->getAttributes();
6262

63-
$originalName = $name;
64-
65-
$name = ltrim($name, ':');
66-
67-
return $attributes[$originalName] ?? $this->attributes[":{$name}"] ?? $this->attributes[$name] ?? null;
63+
return $attributes[$name] ?? null;
6864
}
6965

7066
public function setAttribute(string $name, string $value): self

0 commit comments

Comments
 (0)