MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / destroyPickr

Function destroyPickr

web/pgadmin/static/js/helpers/withColorPicker.js:42–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40 };
41
42 const destroyPickr = () => {
43 if (pickrObj.current) {
44 pickrObj.current.destroy();
45 pickrObj.current = null;
46 }
47 };
48
49 const initPickr = () => {
50 /* pickr does not have way to update options, need to

Callers 2

initPickrFunction · 0.85
HOCComponentFunction · 0.85

Calls 1

destroyMethod · 0.45

Tested by

no test coverage detected