From ea7b01bdd943fcee746b58ae125912d2879d1070 Mon Sep 17 00:00:00 2001 From: wyu <kknd09321@nate.com> Date: 화, 28 12월 2021 17:14:59 +0900 Subject: [PATCH] 간헐적으로 스크롤바 사라지는 문제 수정 summernote 창에서 이동시 스크롤바 hidden 변경 --- src/main/webapp/custom_components/js-autocomplete-single/js-autocomplete-single.js | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/custom_components/js-autocomplete-single/js-autocomplete-single.js b/src/main/webapp/custom_components/js-autocomplete-single/js-autocomplete-single.js index e8ad598..00505d3 100644 --- a/src/main/webapp/custom_components/js-autocomplete-single/js-autocomplete-single.js +++ b/src/main/webapp/custom_components/js-autocomplete-single/js-autocomplete-single.js @@ -23,6 +23,7 @@ page : "=", totalPage : "=", inputDisabled : "=", + customInput : "=", }, templateUrl : "custom_components/js-autocomplete-single/js-autocomplete-single.html", link : function ($scope, $element, $attrs) { @@ -33,6 +34,10 @@ if (!angular.isDefined($scope.inputDisabled)) { $scope.inputDisabled = false; } + + /*if (!angular.isDefined($scope.customInput)) { + $scope.customInput = false; + }*/ $scope.options = []; // �쟾泥� 紐⑸줉 $scope.networkSuccess = false; // �넻�떊 �셿猷� �썑 �솕硫� �몴�떆. @@ -285,7 +290,9 @@ switch (event.keyCode) { case 9 : // �꺆�궎 �떕湲� $scope.open = false; - $scope.search = ""; + if (!angular.isDefined($scope.customInput) && !$scope.customInput) { + $scope.search = ""; + } $scope.page = 0; $scope.totalPage = 0; $scope.options = []; @@ -523,7 +530,9 @@ $scope.$apply(function () { $scope.open = false; if ($scope.selectedModel == null || $scope.selectedModel.length == 0) { - $scope.search = ""; + if (!angular.isDefined($scope.customInput) && !$scope.customInput) { + $scope.search = ""; + } } $scope.page = 0; $scope.totalPage = 0; -- Gitblit v1.8.0