apostrophecms / apostrophecms/apostrophe

Widget UI wrapper remains when effectively empty

Open
#2,017 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
4.6k
Forks
650
Avg merge
19h 21m
Merged PRs (30d)
23

Description

**To Reproduce**
Steps to reproduce the behavior:
- Add an `apostrophe-rich-text` singleton to a page, with a `controls` option with `movable: false` and `removable: false`. Add the singleton on the live page and hover over.

```
{{ apos.singleton(data.page, 'text', 'apostrophe-rich-text', {
controls: {
movable: false,
removable: false
}
}) }}
```

**Expected behavior**
Since there are no controls, there should be no visible controls UI.

**Describe the bug**
A small, empty controls wrapper still appears on hover. This contains a hidden `clone-item` button.

**Server Operating System**
The server (which might be your dev laptop) on which Apostrophe is running. Linux? MacOS X? Windows? Is Docker involved?

Screen Shot 2019-09-09 at 5 52 29 PM

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with an apostrophe-rich-text singleton whose controls set movable and removable to false, then inspect the hover-rendered controls wrapper and its hidden clone-item button. Done means the live page shows no visible controls UI when no controls are available.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.