Skip to content

Commit 572659d

Browse files
koppenCopilot
andauthored
Guard against @hint being nil
Co-authored-by: Copilot <[email protected]>
1 parent 9c9e7f6 commit 572659d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/components/flowbite/input_field.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def default_hint_content
111111
# The default attributes can be overriden by passing the `hint[options]`
112112
# argument to the constructor.
113113
def default_hint_options
114+
return {} unless @hint
114115
hint_options = @hint.dup
115116
hint_options.delete(:content)
116117

0 commit comments

Comments
 (0)