Skip to content

Commit

Permalink
fix README.md floating-ui example code
Browse files Browse the repository at this point in the history
It was using the user defined `opts` without the default `popperOptions` that were defined just above (that are overridden by the user options).
  • Loading branch information
rasca committed Aug 20, 2024
1 parent 84ab406 commit 3eb5085
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function popperFactory(ref, content, opts) {
}

function update() {
computePosition(ref, content, opts).then(({x, y}) => {
computePosition(ref, content, popperOptions).then(({x, y}) => {
Object.assign(content.style, {
left: `${x}px`,
top: `${y}px`,
Expand Down

0 comments on commit 3eb5085

Please sign in to comment.