Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Johnny 1 post 71 karma points
    Jun 25, 2021 @ 08:40
    Johnny
    0

    Click in media picker closes overlay behind

    Hey,

    I got a problem regarding our Custom Grid Editors.

    In TS file I prepare my overlay like the following:

        $scope.overlay = {
        view: "/App_Plugins/Unibase/GridEditors/ImageGallery/Editor.Dialog.html",
        show: false,
        title: "...",
        subtitle: "...",
        submitButtonLabel: "Save",
        submit: function (model) {
            $scope.overlay.show = false;
        },
        close: function (oldModel) {
            $scope.overlay.show = false;
            $scope.control.value = oldModel.data;
        }
    };
    
    $scope.openDialog = function () {
        $scope.overlay.data = $scope.control.value;
        $scope.overlay.show = true;
    };
    

    The view includes a media picker which i activate with following code

        $scope.OpenMediaSelector = function () {
        editorService.mediaPicker({
            multiPicker: false,
            submit: function (argImage) {
                $scope.model.data.SelectedImage = argImage.selection[0];
                //$scope.model.data.teamId = team.selection[0].id;
                //$scope.model.data.teamName = team.selection[0].name;
                editorService.close();
            },
            close: function () {
                editorService.close();
            }
        });
    };
    

    The Problem is that the Overlay closes in background if I click any pixel on screen except a media folder or a media item. I need to prevent that. Or is it a bug in Umbraco?

    Same issue happens in Umbraco RTE if I want to add an anker to the text.

    Maybe someone can help me. If you need more info just ask for it :)

    Thank you in advance!

    Johnny

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies