Comments (3)
Hi @nvazhayil,
I suspect you are running into a bug where Office sends the same event.source.id no matter which button you click on. This only happens on the web. I wrote a function named runRibbonAction in the commands.js file which checks event.source.id and because it is always btnSubmit
that is the only function called.
This is because I mapped all actions for all buttons in the ribbonJSON.js to idRibbonAction
. Mapping all the buttons to a single action is what confuses Office in the case of web. The workaround is to instead create a separate action for each button. You'd need an idRibbonSubmit
, idRibbonRefresh
and so on in the "actions" section of the JSON and map each button to each individual action.
There's a fix in the works so that the original code in this sample will work on the web, but if it looks like that will take awhile, I'll update this sample to avoid creating any confusion.
Hope this helps!
David
from office-add-in-samples.
Hi David,
Are there any logs that are created/updated for this feature? I intend to use contextual tabs extensively. It will be helpful if there is a logging mechanism that captures issues if any.
Thanks.
from office-add-in-samples.
Hi @nvazhayil,
Just wanted to let you know this has been fixed. Can you please let us know if you are still seeing any issues? Sorry for the late follow-up on this. To answer your question on logging bugs, we track all customer reported bugs at https://github.com/OfficeDev/office-js/issues. If you find anything that looks like a bug, please let us know at https://github.com/OfficeDev/office-js/issues. Thanks!
from office-add-in-samples.
Related Issues (20)
- Can not sign-in with msaljs popup on Safari browser based on Samples/auth/Office-Add-in-Microsoft-Graph-React HOT 4
- Better way to handle unidentified image URL with WebImageCellValue HOT 2
- Uncaught (in promise): InvalidRibbonDefinition: InvalidRibbonDefinition RichApi.Error: InvalidRibbonDefinition HOT 1
- Missing scopes (scp) in Bearer token from Azure AD HOT 2
- Unable to sideload the example HOT 3
- Word Addin in NET CORE 7.0 with MVC HOT 9
- doc: broken image links on Readme.md of hello-world HOT 2
- Word Add-in in NET CORE 8 with blazor HOT 3
- Request for Office Addin Sample for Blazor with SSO integration HOT 5
- Inquiry Regarding Suitable Framework for Office Add-ins Development HOT 3
- Javascript exception on initial attempt at running Office-Add-in-ASPNET-SSO sample HOT 10
- Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize HOT 1
- Need admin privs to npx install, no? HOT 2
- Outlook event-based activation examples are immature HOT 3
- Converting Outlook VSTO add-in to web add-in HOT 5
- Example works only in OWA HOT 5
- Office-Add-in-NodeJS-SSO Example fails to claim scope HOT 1
- Sample: Outlook-Add-in-SSO-NAA HOT 9
- How to debug against outlook online account with MFA? HOT 4
- Not able to display Html HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from office-add-in-samples.