We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbf30fa commit b2fd23aCopy full SHA for b2fd23a
1 file changed
plugins/field-grid-dropdown/src/grid.ts
@@ -4,7 +4,7 @@
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
-import {utils, browserEvents, MenuOption} from 'blockly/core';
+import {utils, browserEvents, MenuOption, FieldDropdown} from 'blockly/core';
8
import {GridItem} from './grid_item';
9
10
/**
@@ -88,6 +88,9 @@ export class Grid {
88
private populateItems(options: MenuOption[]) {
89
let row = document.createElement('div');
90
for (const [index, item] of options.entries()) {
91
+ // TODO(#2507): Don't just ignore separators.
92
+ if (item === FieldDropdown.SEPARATOR) continue;
93
+
94
if (index % this.columns === 0) {
95
row = document.createElement('div');
96
row.className = 'blocklyFieldGridRow';
0 commit comments