The dialog.url.open API should be called as follows:
const urlDialogInfo = {
There is a nested size object in the urlDialogInfo. The full interface for this parameter is documented here:
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The CDN being used :
<script src="https://res.cdn.office.net/teams-js/2.23.0/js/MicrosoftTeams.min.js" integrity="sha384-08XJvrutoSVYTA8PQeUgetTKn8B7JE73C5BdAfWnHZ5WnSFFQO6g1FGmSqxsrAzb" crossorigin="anonymous" ></script>
const taskInfo = { title: "Title", height: "large", width: "large", url: URL, fallbackUrl: null } microsoftTeams.dialog.url.open(taskInfo, submitHandler);
we are sending the above task info to url.open(), we are seeing dialog size as small even if we pass expected params of DialogSize
we tried checking the config from the below function getDialogInfoFromBotUrlDialogInfo(), looks like DialogSize params are being overridden to small every time
microsoftTeams.dialog.url.getDialogInfoFromBotUrlDialogInfo(taskInfo)
// result for above function : { completionBotId: null fallbackUrl: null height : "small" title: "Title" url: URL width : "small" }
microsoftTeams.dialog.update.isSupported() //result : true newSize = { height: "large", width: "large" } microsoftTeams?.dialog?.update.resize(newSize)
we tried updating the dialog size using the above function , still its defaulting to small.
Any help will be appreciated
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
The dialog.url.open API should be called as follows:
const urlDialogInfo = {
There is a nested size object in the urlDialogInfo. The full interface for this parameter is documented here: