Skip to content

Commit

Permalink
revert label z-index back to original, use valueordefault for grid z …
Browse files Browse the repository at this point in the history
…index
  • Loading branch information
LeeLenaleee committed Jul 14, 2021
1 parent 750c38b commit 7105d90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/core.scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -1599,8 +1599,8 @@ export default class Scale extends Element {
_layers() {
const me = this;
const opts = me.options;
const tz = opts.ticks && opts.ticks.z || -1;
const gz = opts.grid && opts.grid.z || -1;
const tz = opts.ticks && opts.ticks.z || 0;
const gz = valueOrDefault(opts.grid && opts.grid.z, -1);

if (!me._isVisible() || me.draw !== Scale.prototype.draw) {
// backward compatibility: draw has been overridden by custom scale
Expand Down

0 comments on commit 7105d90

Please sign in to comment.