From 3eb5085caac7ea672bc0dde903a4ab97131b6499 Mon Sep 17 00:00:00 2001 From: Ivan Date: Tue, 20 Aug 2024 15:55:19 -0300 Subject: [PATCH] fix README.md floating-ui example code It was using the user defined `opts` without the default `popperOptions` that were defined just above (that are overridden by the user options). --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 25d4db1c..726a71e7 100644 --- a/README.md +++ b/README.md @@ -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`,