We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef9a1a9 commit f60ed99Copy full SHA for f60ed99
1 file changed
src/form/field/Picker.mjs
@@ -330,6 +330,26 @@ class Picker extends Text {
330
let picker = this.getPicker();
331
picker.hidden = !picker.hidden
332
}
333
+
334
+ /**
335
+ * Serializes the field into a JSON-compatible object.
336
+ * @returns {Object}
337
+ */
338
+ toJSON() {
339
+ let me = this;
340
341
+ return {
342
+ ...super.toJSON(),
343
+ clientRects : me.clientRects,
344
+ picker : me.picker?.toJSON(),
345
+ pickerConfig : me.serializeConfig(me.pickerConfig),
346
+ pickerHeight : me.pickerHeight,
347
+ pickerIsMounted : me.pickerIsMounted,
348
+ pickerMaxHeight : me.pickerMaxHeight,
349
+ pickerWidth : me.pickerWidth,
350
+ showPickerOnFocus: me.showPickerOnFocus
351
+ }
352
353
354
355
export default Neo.setupClass(Picker);
0 commit comments