bootstrap_form icon indicating copy to clipboard operation
bootstrap_form copied to clipboard

render problem

Open Yasingthb opened this issue 1 year ago • 3 comments
trafficstars

The following code snippet provided in the documentation is not functioning as expected when used with Phlex framework:

f.email_field(:email, append: link_to("Go", "#", class: "btn btn-secondary")) Instead of rendering the button correctly, it appears as a separate input element in the top right corner. However, when I use capture, it works correctly. Is this a known issue?

If I use capture it gives the result like this (f.email_field(:email, append: capture { link_to("Go", "#", class: "btn btn-secondary")}))

image

dont use capture (f.email_field(:email, append: link_to("Go", "#", class: "btn btn-secondary"))) image

Yasingthb avatar Feb 13 '24 06:02 Yasingthb