We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b24e047 commit a727257Copy full SHA for a727257
packages/floating-vue/src/components/Popper.ts
@@ -37,6 +37,18 @@ const PROVIDE_KEY = '__floating-vue__popper'
37
export default () => defineComponent({
38
name: 'VPopper',
39
40
+ provide () {
41
+ return {
42
+ [PROVIDE_KEY]: {
43
+ parentPopper: this,
44
+ },
45
+ }
46
47
+
48
+ inject: {
49
+ [PROVIDE_KEY]: { default: null },
50
51
52
props: {
53
theme: {
54
type: String,
@@ -255,18 +267,6 @@ export default () => defineComponent({
255
267
'dispose',
256
268
],
257
269
258
- provide () {
259
- return {
260
- [PROVIDE_KEY]: {
261
- parentPopper: this,
262
- },
263
- }
264
265
-
266
- inject: {
- [PROVIDE_KEY]: { default: null },
270
data () {
271
return {
272
isShown: false,
0 commit comments