diff --git a/packages/select/src/token.ts b/packages/select/src/token.ts index 6dadf660fb..b15029af8a 100644 --- a/packages/select/src/token.ts +++ b/packages/select/src/token.ts @@ -28,9 +28,10 @@ export interface SelectContext { handleOptionSelect(vm: unknown, byClick: boolean): void } -export const selectGroupKey: InjectionKey = Symbol('SelectGroup') +// For individual build sharing injection key, we had to make `Symbol` to string +export const selectGroupKey = 'ElSelectGroup' as unknown as InjectionKey -export const selectKey: InjectionKey = Symbol('Select') +export const selectKey = 'ElSelect' as unknown as InjectionKey export const selectEvents = { queryChange: 'elOptionQueryChange',