Skip to content

Commit 0660f1a

Browse files
Felipe Langjavier-godoy
authored andcommitted
fix: steps array values should be ascending sorted
Array.prototype.sort() default sort order is ascending, built upon converting the elements into strings, then comparing their sequences of UTF-16 code units values. Close #93
1 parent ffe6c4a commit 0660f1a

File tree

1 file changed

+1
-1
lines changed
  • src/main/resources/META-INF/frontend/fcGridHelper

1 file changed

+1
-1
lines changed

src/main/resources/META-INF/frontend/fcGridHelper/connector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ import { Grid } from '@vaadin/grid/src/vaadin-grid.js';
108108

109109
_setResponsiveSteps : function(widths) {
110110
const observer = grid.fcGridHelper._resizeObserver;
111-
observer.widths=widths.sort();
111+
observer.widths=widths.sort((a, b) => a - b);
112112
observer.unobserve(grid);
113113

114114
if (widths.length>0) {

0 commit comments

Comments
 (0)