excluding all number inputs from the copy and paste menu

canary
WolverinDEV 2020-06-12 11:36:47 +02:00
parent 9da9a2eae5
commit cb616b55dc
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ function main() {
return;
if(event.target instanceof HTMLInputElement) {
if((!!event.target.value || __build.target === "client") && !event.target.disabled && !event.target.readOnly) {
if((!!event.target.value || __build.target === "client") && !event.target.disabled && !event.target.readOnly && event.target.type !== "number") {
spawn_context_menu(event.pageX, event.pageY, {
type: MenuEntryType.ENTRY,
name: tr("Copy"),