You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the bubbles theme, calling quill.setSelection({ index: 0, length: quill.getLength() }, 'api') causes the toolbar to show up. The same thing happens if silent is used. It shouldn't unless caused by the user.
I also haven't been able to reproduce this in a sample yet but might be very related. I have intermittently seen that if quill is readOnly then sometimes you can still get the toolbar to show up.
The text was updated successfully, but these errors were encountered:
What's the use case? It's not entirely intuitive that the toolbar should only show when source == 'user'. The reasoning is open and close should behave the same way and the toolbar should close or move whenever the selection changes regardless of source. Otherwise you could highlight a word causing the toolbar to show, and if the API with source==api removes the selection and the toolbar stays open, when the user clicks "bold" they will be very confused why their text is not bolded.
The use-case is to focus and pre-select all the text in an input to allow the user easy replacement (i.e. adding a new item to a list or something along those lines). And with having the toolbar automatically pop up makes it a jarring experience -- as the user pressed an add button (or the like), but now all of a sudden a toolbar pops up. If source isn't a good signal (though feels like it could be, though agree that closing the toolbar should probably happen regardless), maybe there could be a specific option to setSelection that avoids the toolbar opening?
Thank you for the details. The simplest route given the use case might just be to somewhat diverge open / close behavior like you suggested, where close always hides the tooltip but open will only show if the source is user.
When using the bubbles theme, calling
quill.setSelection({ index: 0, length: quill.getLength() }, 'api')
causes the toolbar to show up. The same thing happens ifsilent
is used. It shouldn't unless caused by the user.Steps for Reproduction
Expected behavior:
The toolbar doesn't show
Actual behavior:
The toolbar shows
Platforms:
macOS, Chrome
Version:
1.1.7
I also haven't been able to reproduce this in a sample yet but might be very related. I have intermittently seen that if quill is
readOnly
then sometimes you can still get the toolbar to show up.The text was updated successfully, but these errors were encountered: