Method: Primer::Beta::AutoComplete#before_render

Defined in:
app/components/primer/beta/auto_complete.rb

#before_renderObject

add ‘input` and `results` without needing to explicitly call them in the view



162
163
164
165
# File 'app/components/primer/beta/auto_complete.rb', line 162

def before_render
  with_results(classes: "") unless results?
  with_input(classes: "") unless input?
end