Skip to content

Commit

Permalink
change: change the component_input_text behaviour in a tool. Do not a…
Browse files Browse the repository at this point in the history
…ctivate in this case
  • Loading branch information
Paco committed May 29, 2024
1 parent 7e18cb1 commit 138d105
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/component_input_text/js/view_default_edit_input_text.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,11 @@ const check_duplicates = async function(self, value) {
return
}

// into tool case
if (self.caller.type==='tool') {
return
}

const equal_value = await self.find_equal(value)
if (equal_value) {
ui.component.add_component_warning(
Expand Down

0 comments on commit 138d105

Please sign in to comment.