I managed to find a resolution for the editing issue I was facing. Here is the solution shared in case it could benefit someone else as well.
function(config) {
config.initActions = function( actions ) {
// Removes the "Single Row View" option
actions.remove("single-row-view");
actions.remove("selection-duplicate");
actions.remove("selection-refresh");
};
return config;
}
Instead of using widget.disable, I utilized the remove action to eliminate specific fields from the Selection Menu.
https://i.sstatic.net/L3RkK.png
Edit: There are some new options introduced in APEX 18.2. Below are the codes I found to disable them. Still figuring out how to remove the "Fill" and "Clear" options. Hopefully, this information will be helpful for anyone looking to remove these choices.
The codes targeting the first two options shown here are:
actions.remove("selection-copy");
actions.remove("selection-duplicate");
I've tried using the "selection" prefix for the fill and clear options without success. If you have their codes, please share with me.
https://i.sstatic.net/mjl6N.png