editAttributes of geospatial geometries in R shiny module

I refer to a stackoverflow post that I recently created.

I need a shiny app in which people can map rectangles and directly assign a value to each of the mapped rectangles. This can be done in the data table of the geometry or with a slider. All that needs to be included in a module. The proposed code works as long as it is not splitted into a module and integrated in the main app, but not in the module. Thus, I guess something with the namespace is wrong. I am really happy for any helps, hints or ideas.