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

Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. #352

Closed
danmash opened this issue Aug 6, 2018 · 1 comment

Comments

@danmash
Copy link

danmash commented Aug 6, 2018

Hi, I'm using vue-native-websocket
and add my listener inside a created hook.

  created: function () {
    var vm = this;
    this.$options.sockets.onmessage = function (message) {
      vm.listen(message);
    };
    this.$options.sockets.onopen = function () {
      vm.send('get_table_setup', 'Table settings loading...');
    }
  },

and after I added rowStyleClass

    <vue-good-table
        :row-style-class="getRowClass"

I started getting the following error:

Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
    at VueComponent.getWidthStyle (VgtTableHeader.vue:140)
    at VgtTableHeader.vue:155
getWidthStyle @ VgtTableHeader.vue:140
(anonymous) @ VgtTableHeader.vue:155
setTimeout (async)
setColumnStyles @ VgtTableHeader.vue:147
handler @ VgtTableHeader.vue:96
run @ vue.js:3231
flushSchedulerQueue @ vue.js:2981
(anonymous) @ vue.js:1839
flushCallbacks @ vue.js:1760
Promise.then (async)
microTimerFunc @ vue.js:1808
nextTick @ vue.js:1852
queueWatcher @ vue.js:3068
update @ vue.js:3207
notify @ vue.js:703
reactiveSetter @ vue.js:1020
tableSetup @ OrdersCurrent.js:135
listen @ OrdersCurrent.js:117
$options.sockets.onmessage @ OrdersCurrent.js:100
(anonymous) @ vue-native-websocket.min.js:1
value @ vue-native-websocket.min.js:1
e.WebSocket.(anonymous function) @ vue-native-websocket.min.js:1

looks like class was applied to rows, but the error is annoying.

xaksis added a commit that referenced this issue Aug 18, 2018
@xaksis
Copy link
Owner

xaksis commented Aug 18, 2018

fixed in v2.13.0

@xaksis xaksis closed this as completed Aug 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants