ATLAS-1628 Restrict user from entering text in datepicker input
diff --git a/dashboardv2/public/js/views/entity/CreateEntityLayoutView.js b/dashboardv2/public/js/views/entity/CreateEntityLayoutView.js
index 0206491..057d11a 100644
--- a/dashboardv2/public/js/views/entity/CreateEntityLayoutView.js
+++ b/dashboardv2/public/js/views/entity/CreateEntityLayoutView.js
@@ -406,8 +406,14 @@
removeText(e, e.currentTarget.value);
});
- this.$('input[data-type="date"]').on('dp.hide', function() {
- this.blur();
+ this.$('input[data-type="date"]').on('dp.hide keydown', function(event) {
+ if (event.type) {
+ if (event.type == 'dp') {
+ this.blur();
+ } else if (event.type == 'keydown') {
+ return false;
+ }
+ }
});
},
getContainer: function(value) {
diff --git a/release-log.txt b/release-log.txt
index 921543c..a4c04ca 100644
--- a/release-log.txt
+++ b/release-log.txt
@@ -9,6 +9,7 @@
ATLAS-1127 Modify creation and modification timestamps to Date instead of Long(sumasai)
ALL CHANGES:
+ATLAS-1628 Restrict user from entering text in datepicker input (kevalbhatt)
ATLAS-1538 Make AtlasLdapAuthenticationProvider like Ranger for OpenLdap type (nixonrodrigues via kevalbhatt)
ATLAS-1605 Edit Entity in UI : Update button is not enabled when updating attribute of type date (Kalyanikashikar via kevalbhatt)
ATLAS-1595:Create Entity in UI : All attributes are not listed for hdfs_path. (Kalyanikashikar via kevalbhatt)