Skip to content

Commit

Permalink
Fix clipboard popover rendering
Browse files Browse the repository at this point in the history
This pull request fixes a bug in the `lib/phlex_ui/clipboard.rb` file.

The changes made in this commit address the issue by modifying the
`success_popover` and `error_popover` methods. Instead of using `render
Clipboard::Popover.new`, the code now uses the new syntax
`ClipboardPopover` to render the popover.
  • Loading branch information
cirdes committed Jul 2, 2024
1 parent ab73874 commit b20cee8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/phlex_ui/clipboard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ def view_template(&block)
private

def success_popover
render Clipboard::Popover.new(type: :success) { @success }
ClipboardPopover(type: :success) { @success }
end

def error_popover
render Clipboard::Popover.new(type: :error) { @error }
ClipboardPopover(type: :error) { @error }
end

def default_attrs
Expand Down

0 comments on commit b20cee8

Please sign in to comment.