Skip to content

Commit

Permalink
chore(aria): add TODO comment for SSR support
Browse files Browse the repository at this point in the history
  • Loading branch information
plainheart authored May 6, 2024
1 parent 4515cd3 commit 872ac99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/visual/aria.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,11 @@ export default function ariaVisual(ecModel: GlobalModel, api: ExtensionAPI) {

function setLabel() {
const dom = api.getZr().dom;
// No DOM if using SSR
// TODO: support for SSR
if (!dom) {
return;
}

const labelLocale = ecModel.getLocaleModel().get('aria');
const labelModel = ariaModel.getModel('label');
labelModel.option = zrUtil.defaults(labelModel.option, labelLocale);
Expand Down

0 comments on commit 872ac99

Please sign in to comment.