DevExpress / devextreme-vue

Vue UI and data visualization components
https://js.devexpress.com/Demos/
MIT License
268 stars 68 forks source link

The Class prop overrides DevExtreme classes #149

Closed IlyaKhD closed 4 years ago

IlyaKhD commented 6 years ago

Issue Type

bug report

Description

The issue is related to all components

Steps to Reproduce

Change any component class after it was initialized

Current Behavior

dx-* classes removed

Expected Behavior

dx-* classes remain

Environment Details

lukyanovas commented 6 years ago

Vue does not give access to a class property. We will investigate how to fix this issue. As a workaround, you can wrap the DevExtreme widget in a div and set your class to it.

IlyaKhD commented 5 years ago

Vue has some restrictions for the case. From the https://github.com/vuejs/vue/issues/3975:

This is expected behaviour in 2.0, since these changes can't be reflected in the virtualDOM and get therefore overriden during updates.

LexDX commented 4 years ago

We are unable to fix this issue because of Vue 2.0 limitations. We will consider this modification once Vue 3.0 is released.