Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] ActiveSheetChanged #4577

Open
2 tasks done
daveprimepay opened this issue Jan 30, 2025 · 1 comment
Open
2 tasks done

[Bug] ActiveSheetChanged #4577

daveprimepay opened this issue Jan 30, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@daveprimepay
Copy link

Before you submit this issue, have you checked the following

  • Is this really a problem?
  • I have searched the Github Issues for similar issues, but did not find anything.

Affected packages and versions

v0.5.5

Reproduction link

New install: Following https://docs.univer.ai/en-US/guides/sheets/getting-started/installation

univerAPI.addEvent(univerAPI.Event.ActiveSheetChanged, (params) => {
const { workbook, activeSheet } = params;
console.log('after active sheet changed', params);
});

Nothing displays in console

However
univerAPI.addEvent(univerAPI.Event.BeforeSheetMove, (params) => {
const { workbook, worksheet, newIndex, oldIndex } = params;
console.log('before sheet move', params);
});

Works and displays in console.

Sorry in advance, but I am terribly new to reporting bugs.

Expected behavior

univerAPI.addEvent(univerAPI.Event.ActiveSheetChanged, (params) => {
const { workbook, activeSheet } = params;
console.log('after active sheet changed', params);
});

Would spit out data in console.

Actual behavior

No console.log data is present

System information

System:
OS: Windows 11 10.0.26100
CPU: (16) x64 AMD Ryzen 7 PRO 5875U with Radeon Graphics
Memory: 5.85 GB / 31.31 GB
Binaries:
Node: 18.3.0 - C:\Program Files\nodejs\node.EXE
npm: 8.11.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Chromium (129.0.2792.89)
Internet Explorer: 11.0.26100.1882

@univer-bot univer-bot bot added the bug Something isn't working label Jan 30, 2025
@daveprimepay
Copy link
Author

I was using preset prior to looking at preset core library as 0.5.2, the change I am interested in is the latest 0.5.5 release notes:

"Added support for sheet-related events: ActiveSheetChanged, SheetDeleted, SheetHideChanged, SheetMoved, SheetNameChanged, SheetTabColorChanged, SheetValueChanged #4494"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant