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

The Sortable cursor option applies inline styles #8066

Open
IvanDanchev opened this issue Nov 29, 2024 · 0 comments
Open

The Sortable cursor option applies inline styles #8066

IvanDanchev opened this issue Nov 29, 2024 · 0 comments
Labels
Bug C: Sortable FP: Unplanned Sync status with associated Feedback Item jQuery SEV: Medium

Comments

@IvanDanchev
Copy link
Contributor

Describe the bug
Setting the Sortable "cursor" option results in inline styles being applied through the _setCursor function in kendo.all.min.js. This causes a CSP related js exception.

To reproduce

  1. On a page with strict Content-Security-Policy enabled, drag and drop an item using the example below:
<ul id="sortable">
    <li>ItemA1</li>
    <li>ItemA2</li>
    <li>ItemA3</li>
</ul>

<script>
    $("#sortable").kendoSortable({
        cursor: "move"
    });
</script>

Expected behavior
No inline styles should be added, to ensure CSP compatibility.

Actual behavior
A js error related to inline styles is thrown.

Affected browsers (please remove the unneeded items)

  • All

Product Version
2024.4.1112

@IvanDanchev IvanDanchev added Bug C: Sortable FP: Unplanned Sync status with associated Feedback Item jQuery SEV: Medium labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug C: Sortable FP: Unplanned Sync status with associated Feedback Item jQuery SEV: Medium
Projects
None yet
Development

No branches or pull requests

1 participant