Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix placeholder and scroll behavior

x032205977ef5a263d4
diff --git a/frontend/src/pages/pam/components/policyEditors/DurationPolicyEditor.tsx b/frontend/src/pages/pam/components/policyEditors/DurationPolicyEditor.tsx
index 502d780194..e63b8fb978 100644
--- a/frontend/src/pages/pam/components/policyEditors/DurationPolicyEditor.tsx
+++ b/frontend/src/pages/pam/components/policyEditors/DurationPolicyEditor.tsx
@@ -13,12 +13,13 @@ export const DurationPolicyEditor = ({
<FieldContent>
<Input
type="number"
- placeholder="e.g. 3600 (leave empty for no limit)"
+ placeholder="e.g. 3600 (defaults to 1 hour if empty)"
value={typeof value === "number" ? value : ""}
onChange={(e) => {
const parsed = Number(e.target.value);
onChange(e.target.value === "" || Number.isNaN(parsed) ? null : parsed);
}}
+ onWheel={(e) => e.currentTarget.blur()}
/>
<FieldDescription>{description}</FieldDescription>
</FieldContent>